diff options
author | Volker Lendecke <vl@samba.org> | 2014-08-02 13:57:43 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-08-22 02:53:52 +0200 |
commit | 8deb851200e5938a393932e7c50607f4180798ca (patch) | |
tree | 79b482bf297e7473e598225ae96a986f3f5d92dc | |
parent | 5cbda7e24873ffb5946c7578576ad1af1579ae60 (diff) | |
download | samba-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.c | 2 |
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 */ |