path: root/extent_io.c
diff options
authorAlex Chiang <>2008-04-01 10:52:22 -0400
committerDavid Woodhouse <>2008-04-01 10:52:22 -0400
commit857e9a2a63495be26347591b4d7f167b3e1e88bc (patch)
treeabf8012fbb5fe46681fe49c17fe71eaa85271187 /extent_io.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 <>
Diffstat (limited to 'extent_io.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/extent_io.c b/extent_io.c
index b663275f..9071644d 100644
--- a/extent_io.c
+++ b/extent_io.c
@@ -68,7 +68,8 @@ void extent_io_tree_cleanup(struct extent_io_tree *tree)
eb = list_entry(tree->, struct extent_buffer, lru);
if (eb->refs != 1) {
fprintf(stderr, "extent buffer leak: "
- "start %Lu len %u\n", eb->start, eb->len);
+ "start %llu len %u\n",
+ (unsigned long long)eb->start, eb->len);
eb->refs = 1;