From 71a9ec6ecd1b603afc9c1f1f3e2f688a33f0690c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 9 Aug 2013 12:10:55 +0000 Subject: [PATCH] added more diagnostic text --- sources/xhdi_sd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/xhdi_sd.c b/sources/xhdi_sd.c index 8314d8d..22ee986 100644 --- a/sources/xhdi_sd.c +++ b/sources/xhdi_sd.c @@ -190,20 +190,22 @@ uint32_t xhdi_get_capacity(uint16_t major, uint16_t minor, uint32_t *blocks, uin { if (disk_ioctl(0, GET_SECTOR_COUNT, blocks) != RES_OK) { - xprintf("disk_ioctl(0, GET_SECTOR_COUNT, %p) failed in xhdi_get_capacity()\r\n"); + xprintf("disk_ioctl(0, GET_SECTOR_COUNT, %p) failed at %s:%s\r\n", __FILE__, __LINE__); return ERROR; } + xprintf("%s:%s: determined sector count to %ld\r\n", __FILE__, __LINE__, *blocks); } if (bs != 0) { if (disk_ioctl(0, GET_SECTOR_SIZE, bs) != RES_OK) { - xprintf("disk_ioctl(0, GET_SECTOR_SIZE, %p) failed in xhdi_get_capacity()\r\n"); + xprintf("disk_ioctl(0, GET_SECTOR_SIZE, %p) failed at %s:%sr\n", __FILE__, __LINE__); return ERROR; } + xprintf("%s:%s: determined sector size to %ld\r\n", __FILE__, __LINE__, *bs); } return E_OK; }