summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-08 09:07:13 -0700
committerBrian Behlendorf <[email protected]>2009-07-08 09:07:13 -0700
commitb2e459dab08d702888324f2f8841b628ff0b80f1 (patch)
tree77b6118b68f1991d5f55ba19e0beab2446d85938 /cmd
parent55344474772b79ba53006b3cca25a3075c3c3e56 (diff)
Add explicit casts for (u_longlong_t) when printing uint64_t.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ztest/ztest.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c
index 746db0c07..ad8d47fbc 100644
--- a/cmd/ztest/ztest.c
+++ b/cmd/ztest/ztest.c
@@ -1608,11 +1608,16 @@ ztest_dsl_dataset_cleanup(char *osname, uint64_t curval)
char snap3name[100];
int error;
- (void) snprintf(snap1name, 100, "%s@s1_%llu", osname, curval);
- (void) snprintf(clone1name, 100, "%s/c1_%llu", osname, curval);
- (void) snprintf(snap2name, 100, "%s@s2_%llu", clone1name, curval);
- (void) snprintf(clone2name, 100, "%s/c2_%llu", osname, curval);
- (void) snprintf(snap3name, 100, "%s@s3_%llu", clone1name, curval);
+ (void) snprintf(snap1name, 100, "%s@s1_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(clone1name, 100, "%s/c1_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(snap2name, 100, "%s@s2_%llu",
+ clone1name, (u_longlong_t)curval);
+ (void) snprintf(clone2name, 100, "%s/c2_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(snap3name, 100, "%s@s3_%llu",
+ clone1name, (u_longlong_t)curval);
error = dmu_objset_destroy(clone2name);
if (error && error != ENOENT)
@@ -1654,11 +1659,16 @@ ztest_dsl_dataset_promote_busy(ztest_args_t *za)
dmu_objset_name(os, osname);
ztest_dsl_dataset_cleanup(osname, curval);
- (void) snprintf(snap1name, 100, "%s@s1_%llu", osname, curval);
- (void) snprintf(clone1name, 100, "%s/c1_%llu", osname, curval);
- (void) snprintf(snap2name, 100, "%s@s2_%llu", clone1name, curval);
- (void) snprintf(clone2name, 100, "%s/c2_%llu", osname, curval);
- (void) snprintf(snap3name, 100, "%s@s3_%llu", clone1name, curval);
+ (void) snprintf(snap1name, 100, "%s@s1_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(clone1name, 100, "%s/c1_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(snap2name, 100, "%s@s2_%llu",
+ clone1name, (u_longlong_t)curval);
+ (void) snprintf(clone2name, 100, "%s/c2_%llu",
+ osname, (u_longlong_t)curval);
+ (void) snprintf(snap3name, 100, "%s@s3_%llu",
+ clone1name, (u_longlong_t)curval);
error = dmu_objset_snapshot(osname, strchr(snap1name, '@')+1,
NULL, FALSE);