summaryrefslogtreecommitdiff
path: root/ctree.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 /ctree.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 'ctree.c')
-rw-r--r--ctree.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ctree.c b/ctree.c
index d172875a..5e423754 100644
--- a/ctree.c
+++ b/ctree.c
@@ -239,8 +239,9 @@ int btrfs_cow_block(struct btrfs_trans_handle *trans,
}
*/
if (trans->transid != root->fs_info->generation) {
- printk(KERN_CRIT "trans %Lu running %Lu\n", trans->transid,
- root->fs_info->generation);
+ printk(KERN_CRIT "trans %llu running %llu\n",
+ (unsigned long long)trans->transid,
+ (unsigned long long)root->fs_info->generation);
WARN_ON(1);
}
if (btrfs_header_generation(buf) == trans->transid) {