summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/random-test.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-02-26 10:55:01 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-02-26 10:55:01 -0500
commit7cf75962acd27ed0f819df791486e7b803c7109c (patch)
treec8e85b451c563355906d80561679492acfd482f1 /fs/btrfs/random-test.c
parentc673024aba596e57c07196cb3400cdcc9d28f3aa (diff)
downloadtalos-op-linux-7cf75962acd27ed0f819df791486e7b803c7109c.tar.gz
talos-op-linux-7cf75962acd27ed0f819df791486e7b803c7109c.zip
Btrfs: u64 cleanups
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/random-test.c')
-rw-r--r--fs/btrfs/random-test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/btrfs/random-test.c b/fs/btrfs/random-test.c
index 3c8c68d55d2f..111a248bd5c2 100644
--- a/fs/btrfs/random-test.c
+++ b/fs/btrfs/random-test.c
@@ -42,7 +42,7 @@ static int ins_one(struct ctree_root *root, struct radix_tree_root *radix)
char buf[128];
init_path(&path);
ret = setup_key(radix, &key, 0);
- sprintf(buf, "str-%lu\n", key.objectid);
+ sprintf(buf, "str-%Lu\n", key.objectid);
ret = insert_item(root, &key, buf, strlen(buf));
if (ret)
goto error;
@@ -54,7 +54,7 @@ static int ins_one(struct ctree_root *root, struct radix_tree_root *radix)
goto error;
return ret;
error:
- printf("failed to insert %lu\n", key.objectid);
+ printf("failed to insert %Lu\n", key.objectid);
return -1;
}
@@ -68,10 +68,10 @@ static int insert_dup(struct ctree_root *root, struct radix_tree_root *radix)
ret = setup_key(radix, &key, 1);
if (ret < 0)
return 0;
- sprintf(buf, "str-%lu\n", key.objectid);
+ sprintf(buf, "str-%Lu\n", key.objectid);
ret = insert_item(root, &key, buf, strlen(buf));
if (ret != -EEXIST) {
- printf("insert on %lu gave us %d\n", key.objectid, ret);
+ printf("insert on %Lu gave us %d\n", key.objectid, ret);
return 1;
}
return 0;
@@ -99,7 +99,7 @@ static int del_one(struct ctree_root *root, struct radix_tree_root *radix)
goto error;
return 0;
error:
- printf("failed to delete %lu\n", key.objectid);
+ printf("failed to delete %Lu\n", key.objectid);
return -1;
}
@@ -118,7 +118,7 @@ static int lookup_item(struct ctree_root *root, struct radix_tree_root *radix)
goto error;
return 0;
error:
- printf("unable to find key %lu\n", key.objectid);
+ printf("unable to find key %Lu\n", key.objectid);
return -1;
}
@@ -137,7 +137,7 @@ static int lookup_enoent(struct ctree_root *root, struct radix_tree_root *radix)
goto error;
return 0;
error:
- printf("able to find key that should not exist %lu\n", key.objectid);
+ printf("able to find key that should not exist %Lu\n", key.objectid);
return -1;
}
@@ -148,7 +148,7 @@ static int fill_radix(struct ctree_root *root, struct radix_tree_root *radix)
{
struct ctree_path path;
struct key key;
- u64 found;
+ unsigned long found;
int ret;
int slot;
int i;
OpenPOWER on IntegriCloud