fixed error message (xhdi_get_capacity())
This commit is contained 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.*)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user