chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal-file: update format string to remove cast
[elogind.git]
/
src
/
journal
/
journal-file.c
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 1e861d10a35ecd2dd86228efded5c2f075668de2..f857a6aa372508cb9fafb085f1aff47aa45ae4fd 100644
(file)
--- 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);
/* The file is corrupted. Rotate it away and try it again (but only once) */
l = strlen(fname);
- if (asprintf(&p, "%.*s@%016
llx-%016"
PRIx64 ".journal~",
+ if (asprintf(&p, "%.*s@%016
"PRIx64 "-%016"
PRIx64 ".journal~",
(int) l - 8, fname,
(int) l - 8, fname,
-
(unsigned long long)
now(CLOCK_REALTIME),
+ now(CLOCK_REALTIME),
random_u64()) < 0)
return -ENOMEM;
random_u64()) < 0)
return -ENOMEM;