summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-08-02 13:57:43 +0200
committerJeremy Allison <jra@samba.org>2014-08-22 02:53:52 +0200
commit8deb851200e5938a393932e7c50607f4180798ca (patch)
tree79b482bf297e7473e598225ae96a986f3f5d92dc
parent5cbda7e24873ffb5946c7578576ad1af1579ae60 (diff)
downloadsamba-8deb851200e5938a393932e7c50607f4180798ca.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/lib/messages_dgm.c2
1 files changed, 1 insertions, 1 deletions
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 */