From d61056eaf0d44528a2e8e071b9c2a3d03e2b8af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 11 Aug 2013 15:40:37 +0000 Subject: [PATCH] fixed error message (xhdi_get_capacity()) --- bas.lk.in | 5 +---- sources/xhdi_sd.c | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bas.lk.in b/bas.lk.in index 472ee91..fd9989f 100644 --- a/bas.lk.in +++ b/bas.lk.in @@ -52,12 +52,9 @@ SECTIONS *(.data) __BAS_DATA_END = .; *(.bss) - - /* The BaS copy routine assumes that tha BaS size - * is a multiple of the following value. - */ . = ALIGN(16); #endif /* TARGET_ADDRESS */ + #if (FORMAT == elf32-m68k) *(.rodata) *(.rodata.*) diff --git a/sources/xhdi_sd.c b/sources/xhdi_sd.c index b941c03..b4824b9 100644 --- a/sources/xhdi_sd.c +++ b/sources/xhdi_sd.c @@ -190,7 +190,7 @@ 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 at %s:%d\r\n", __FILE__, __LINE__); + xprintf("disk_ioctl(0, GET_SECTOR_COUNT, %p) failed at %s:%d\r\n", blocks, __FILE__, __LINE__); return ERROR; } @@ -201,7 +201,7 @@ uint32_t xhdi_get_capacity(uint16_t major, uint16_t minor, uint32_t *blocks, uin { if (disk_ioctl(0, GET_SECTOR_SIZE, bs) != RES_OK) { - xprintf("disk_ioctl(0, GET_SECTOR_SIZE, %p) failed at %s:%dr\n", __FILE__, __LINE__); + xprintf("disk_ioctl(0, GET_SECTOR_SIZE, %p) failed at %s:%dr\n", bs, __FILE__, __LINE__); return ERROR; }