Fix format string warnings.

This commit is contained in:
Andrey V. Elsukov 2014-10-05 11:16:16 +00:00
parent 9514a9d161
commit d6a0c11b7a

View File

@ -78,8 +78,8 @@ disk_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf,
return (-1);
if (rsize)
*rsize = 0;
printf("read %lu bytes from the block %ld [+%ld]\n", size,
blk, dev->d_offset);
printf("read %zu bytes from the block %lld [+%lld]\n", size,
(long long)blk, (long long)dev->d_offset);
ret = pread(disk.fd, buf, size,
(blk + dev->d_offset) * disk.sectorsize);
if (ret != size)