summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/read-only/src/worm-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/read-only/src/worm-helper.c b/xlators/features/read-only/src/worm-helper.c
index 81a167e3c63..61aa4f02651 100644
--- a/xlators/features/read-only/src/worm-helper.c
+++ b/xlators/features/read-only/src/worm-helper.c
@@ -215,7 +215,7 @@ gf_worm_serialize_state (worm_reten_state_t *reten_state, char *val)
state |= reten_state->retain << 1;
state |= reten_state->legal_hold << 2;
state |= reten_state->ret_mode << 3;
- sprintf (val, "%d/%ld/%ld", state, reten_state->ret_period,
+ sprintf (val, "%d/%"PRIu64"/%"PRIu64, state, reten_state->ret_period,
reten_state->auto_commit_period);
out: