From 9462e711a70c3820f490221eb2e4aeef0c8c495b Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Fri, 11 Apr 2008 12:18:46 -0400 Subject: [PATCH] Fix a few casts for 32 bit compile --- btrfsck.c | 4 ++-- btrfsctl.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/btrfsck.c b/btrfsck.c index 9dc085f1..5a89ac66 100644 --- a/btrfsck.c +++ b/btrfsck.c @@ -132,9 +132,9 @@ static int check_leaf(struct btrfs_root *root, } if (i == 0 && btrfs_item_end_nr(buf, i) != BTRFS_LEAF_DATA_SIZE(root)) { - fprintf(stderr, "bad item end %u wanted %lu\n", + fprintf(stderr, "bad item end %u wanted %u\n", btrfs_item_end_nr(buf, i), - BTRFS_LEAF_DATA_SIZE(root)); + (unsigned)BTRFS_LEAF_DATA_SIZE(root)); return 1; } } diff --git a/btrfsctl.c b/btrfsctl.c index ae0dd654..8e8cefa2 100644 --- a/btrfsctl.c +++ b/btrfsctl.c @@ -137,7 +137,6 @@ int main(int ac, char **av) fd = dirfd(dirstream); } else if (command == BTRFS_IOC_SCAN_DEV) { fd = open("/dev/btrfs-control", O_RDWR); - printf("scanning %s command %lu\n", fname, BTRFS_IOC_SCAN_DEV); name = fname; } else { fd = open(fname, O_RDWR);