summaryrefslogtreecommitdiff
path: root/disk-io.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-04-07 21:02:04 +1000
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:57 -0400
commitfa81a569ac5e4ca426cd8e3fc8a0f181c58a8fae (patch)
treee980b0ee1e50208622f6ca63a37814ff9933397e /disk-io.c
parentfcdc0929c6ea051dad59818210df53fd03eaf4b1 (diff)
btrfs-progs: cast u64 to long long to avoid printf warnings
When building on ppc64 I hit a number of warnings in printf: btrfs-map-logical.c:69: error: format ‘%Lu’ expects type ‘long long unsigned int’, but argument 4 has type ‘u64’ Fix them. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/disk-io.c b/disk-io.c
index 90228556..aed624ce 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -675,7 +675,8 @@ struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr,
~BTRFS_FEATURE_INCOMPAT_SUPP;
if (features) {
printk("couldn't open because of unsupported "
- "option features (%Lx).\n", features);
+ "option features (%Lx).\n",
+ (unsigned long long)features);
BUG_ON(1);
}
@@ -689,7 +690,8 @@ struct btrfs_root *open_ctree_fd(int fp, const char *path, u64 sb_bytenr,
~BTRFS_FEATURE_COMPAT_RO_SUPP;
if (writes && features) {
printk("couldn't open RDWR because of unsupported "
- "option features (%Lx).\n", features);
+ "option features (%Lx).\n",
+ (unsigned long long)features);
BUG_ON(1);
}