diff options
Diffstat (limited to 'disklab.c')
-rw-r--r-- | disklab.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); } |