projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix assorted unused code and wrong format specs found by cppchekc (bug 6716)
[platform/upstream/busybox.git]
/
e2fsprogs
/
old_e2fsprogs
/
ext2fs
/
unix_io.c
diff --git
a/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
b/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
index
474f073
..
3c95829
100644
(file)
--- a/
e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
+++ b/
e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c
@@
-544,7
+544,7
@@
static errcode_t unix_read_blk(io_channel channel, unsigned long block,
/* If it's in the cache, use it! */
if ((cache = find_cached_block(data, block, &reuse[0]))) {
#ifdef DEBUG
/* If it's in the cache, use it! */
if ((cache = find_cached_block(data, block, &reuse[0]))) {
#ifdef DEBUG
- printf("Using cached block %
d
\n", block);
+ printf("Using cached block %
lu
\n", block);
#endif
memcpy(cp, cache->buf, channel->block_size);
count--;
#endif
memcpy(cp, cache->buf, channel->block_size);
count--;
@@
-560,7
+560,7
@@
static errcode_t unix_read_blk(io_channel channel, unsigned long block,
if (find_cached_block(data, block+i, &reuse[i]))
break;
#ifdef DEBUG
if (find_cached_block(data, block+i, &reuse[i]))
break;
#ifdef DEBUG
- printf("Reading %d blocks starting at %
d
\n", i, block);
+ printf("Reading %d blocks starting at %
lu
\n", i, block);
#endif
if ((retval = raw_read_blk(channel, data, block, i, cp)))
return retval;
#endif
if ((retval = raw_read_blk(channel, data, block, i, cp)))
return retval;