diff options
author | Alex Chiang <achiang@hp.com> | 2008-04-01 10:52:22 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-04-01 10:52:22 -0400 |
commit | 857e9a2a63495be26347591b4d7f167b3e1e88bc (patch) | |
tree | abf8012fbb5fe46681fe49c17fe71eaa85271187 /disk-io.c | |
parent | 5b4fe4f80fe620faff695ab1c3931b621ffb775e (diff) |
btrfs-progs: Fix printf format casting errors
We get lots of warnings of the flavor:
utils.c:441: warning: format '%Lu' expects type 'long long unsigned int' but argument 2 has type 'u64'
And thanks to -Werror, the build fails. Clean up these printfs
by properly casting the arg to the format specified.
Signed-off-by: Alex Chiang <achiang@hp.com>
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -84,7 +84,8 @@ static int csum_tree_block(struct btrfs_root *root, struct extent_buffer *buf, if (verify) { if (memcmp_extent_buffer(buf, result, 0, BTRFS_CRC32_SIZE)) { - printk("checksum verify failed on %llu\n", buf->start); + printk("checksum verify failed on %llu\n", + (unsigned long long)buf->start); return 1; } } else { @@ -431,8 +432,8 @@ struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr) fprintf(stderr, "No valid Btrfs found on %s\n", path); return NULL; } - fprintf(stderr, "found Btrfs on %s with %Lu devices\n", path, - total_devs); + fprintf(stderr, "found Btrfs on %s with %lu devices\n", path, + (unsigned long)total_devs); if (total_devs != 1) { ret = btrfs_scan_for_fsid(fs_devices, total_devs, 1); |