From 8deb851200e5938a393932e7c50607f4180798ca Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Aug 2014 13:57:43 +0200 Subject: [PATCH] messaging_dgm: Use %ju to fill lockfile ... much nicer than PRIu64 Also, append a \n. Makes it better readable when looking at the lockfile Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/messages_dgm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/messages_dgm.c b/source3/lib/messages_dgm.c index e2ee7512dfd..1bf1805f7c1 100644 --- a/source3/lib/messages_dgm.c +++ b/source3/lib/messages_dgm.c @@ -106,7 +106,7 @@ static int messaging_dgm_lockfile_create(TALLOC_CTX *tmp_ctx, goto fail_close; } - unique_len = snprintf(buf, sizeof(buf), "%"PRIu64, unique); + unique_len = snprintf(buf, sizeof(buf), "%ju\n", (uintmax_t)unique); /* shorten a potentially preexisting file */ -- 2.11.4.GIT