diff options
author | H. Nikolaus Schaller <hns@goldelico.com> | 2012-04-20 11:54:47 +0200 |
---|---|---|
committer | H. Nikolaus Schaller <hns@goldelico.com> | 2012-04-20 11:54:47 +0200 |
commit | 160b5f3b2e48e00385381583b81562ea92e53a58 (patch) | |
tree | a52c4b4c64166659688369f1fa1f36ef8639eb1c /x-loader/fs/fat/fat.c | |
parent | 0e226b20497768b6af40ace2bb1fa5d14c090566 (diff) | |
download | bootable_bootloader_goldelico_gta04_x-loader-160b5f3b2e48e00385381583b81562ea92e53a58.zip bootable_bootloader_goldelico_gta04_x-loader-160b5f3b2e48e00385381583b81562ea92e53a58.tar.gz bootable_bootloader_goldelico_gta04_x-loader-160b5f3b2e48e00385381583b81562ea92e53a58.tar.bz2 |
fixed printing address on memory errors
Diffstat (limited to 'x-loader/fs/fat/fat.c')
-rw-r--r-- | x-loader/fs/fat/fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x-loader/fs/fat/fat.c b/x-loader/fs/fat/fat.c index 068966f..e32cb62 100644 --- a/x-loader/fs/fat/fat.c +++ b/x-loader/fs/fat/fat.c @@ -354,7 +354,7 @@ get_cluster(fsdata *mydata, __u32 clustnum, __u8 *buffer, unsigned long size) } memcpy(buffer, tmpbuf, FS_BLOCK_SIZE); if(memcmp(buffer, tmpbuf, FS_BLOCK_SIZE) != 0) { - FAT_ERROR("Memory error\n"); + FAT_ERROR("Memory error at 0x%8x\n", buffer); return -1; } startsect++; @@ -370,7 +370,7 @@ get_cluster(fsdata *mydata, __u32 clustnum, __u8 *buffer, unsigned long size) memcpy(buffer, tmpbuf, size % FS_BLOCK_SIZE); if(memcmp(buffer, tmpbuf, size % FS_BLOCK_SIZE) != 0) { - FAT_ERROR("Memory error\n"); + FAT_ERROR("Memory error at 0x%8x\n", buffer); return -1; } return 0; |