summaryrefslogtreecommitdiff
path: root/file-item.c
diff options
context:
space:
mode:
authorAlex Chiang <achiang@hp.com>2008-04-01 10:52:22 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2008-04-01 10:52:22 -0400
commit857e9a2a63495be26347591b4d7f167b3e1e88bc (patch)
treeabf8012fbb5fe46681fe49c17fe71eaa85271187 /file-item.c
parent5b4fe4f80fe620faff695ab1c3931b621ffb775e (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 'file-item.c')
-rw-r--r--file-item.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/file-item.c b/file-item.c
index 8b85f7a0..4cbc2a57 100644
--- a/file-item.c
+++ b/file-item.c
@@ -136,7 +136,8 @@ int btrfs_insert_inline_extent(struct btrfs_trans_handle *trans,
err = ret;
btrfs_print_leaf(root, leaf);
printk("found wasn't inline offset %llu inode %llu\n",
- offset, objectid);
+ (unsigned long long)offset,
+ (unsigned long long)objectid);
goto fail;
}
found_size = btrfs_file_extent_inline_len(leaf,
@@ -386,8 +387,9 @@ found:
csum_result = btrfs_csum_data(root, data, csum_result, len);
btrfs_csum_final(csum_result, (char *)&csum_result);
if (csum_result == 0) {
- printk("csum result is 0 for inode %Lu offset %Lu\n",
- objectid, offset);
+ printk("csum result is 0 for inode %llu offset %llu\n",
+ (unsigned long long)objectid,
+ (unsigned long long)offset);
}
write_extent_buffer(leaf, &csum_result, (unsigned long)item,