From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Mar 2015 21:22:50 +0000 (-0400) Subject: journal-file: update format string to remove cast X-Git-Tag: v219.0~418 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d587eca5104b212793b310d8590db480f1004d3a;p=elogind.git journal-file: update format string to remove cast --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 1e861d10a..f857a6aa3 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2818,9 +2818,9 @@ int journal_file_open_reliably( /* The file is corrupted. Rotate it away and try it again (but only once) */ l = strlen(fname); - if (asprintf(&p, "%.*s@%016llx-%016" PRIx64 ".journal~", + if (asprintf(&p, "%.*s@%016"PRIx64 "-%016"PRIx64 ".journal~", (int) l - 8, fname, - (unsigned long long) now(CLOCK_REALTIME), + now(CLOCK_REALTIME), random_u64()) < 0) return -ENOMEM;