aboutsummaryrefslogtreecommitdiffstats
path: root/disklab.c
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-05-20 07:07:31 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-05-20 07:07:31 +0800
commit7ae9080b65998c402cee3268161035d7c7afa7cd (patch)
treee566fd73a3bf3b46893d6495797b0e4d4ecb67a2 /disklab.c
parent88a72896dc32cc4a2a79b962af6b21ec5d442333 (diff)
downloaddevel-7ae9080b65998c402cee3268161035d7c7afa7cd.tar.gz
devel-7ae9080b65998c402cee3268161035d7c7afa7cd.tar.xz
devel-7ae9080b65998c402cee3268161035d7c7afa7cd.zip
Make the fat system dirve do the workldlinux
bug fixed; syslinux can read the files correctly , and more, it also can detect the fat cluster that corss one sector(FAT12 will, since the cache is based on sector size for fat filesystem), so it may or even can work correctly.
Diffstat (limited to 'disklab.c')
-rw-r--r--disklab.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/disklab.c b/disklab.c
index c0673ef..a30998f 100644
--- a/disklab.c
+++ b/disklab.c
@@ -21,7 +21,8 @@ void* getoneblk(__u32 block)
buf = malloc(blk_size);
if ( (bytes_read = read(fd, buf, blk_size)) < blk_size )
- printf("read %d bytes less than %dB..\n", bytes_read, blk_size);
+ printf("%s:%s: read %d bytes less than %dB..\n",
+ __FILE__, __FUNCTION__, bytes_read, blk_size);
return buf;
}
@@ -37,7 +38,7 @@ void getlinsec(char *buf, int sector, int sector_cnt)
}
if ( (bytes_read = read(fd, buf, 512*sector_cnt)) < 512*sector_cnt)
- printf("read %d bytes less than %d bytes..\n",
- bytes_read, 512 * sector_cnt);
+ printf("%s:%s: read %d bytes less than %d bytes..\n",
+ __FILE__, __FUNCTION__, bytes_read, 512 * sector_cnt);
}