From 857e9a2a63495be26347591b4d7f167b3e1e88bc Mon Sep 17 00:00:00 2001 From: Alex Chiang Date: Tue, 1 Apr 2008 10:52:22 -0400 Subject: 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 --- root-tree.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'root-tree.c') diff --git a/root-tree.c b/root-tree.c index b639214..019216c 100644 --- a/root-tree.c +++ b/root-tree.c @@ -183,7 +183,10 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, goto out; if (ret) { btrfs_print_leaf(root, path->nodes[0]); -printk("failed to del %Lu %u %Lu\n", key->objectid, key->type, key->offset); +printk("failed to del %llu %u %llu\n", + (unsigned long long)key->objectid, + key->type, + (unsigned long long)key->offset); } BUG_ON(ret != 0); -- cgit v1.2.1