chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01d183d
)
util: drop "," between week day and date when formatting timestamps
author
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2012 15:24:59 +0000
(16:24 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 23 Nov 2012 15:26:28 +0000
(16:26 +0100)
The glibc default (as shown by the command line tool "date") doesn't put a comma there,
and so we shouldn't either.
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index d771d321dd6a7d6a5cc7d4310409f849fb955f3d..37fd1adfc9a4f03c71f58a3f54286083f2faf953 100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-1968,7
+1968,7
@@
char *format_timestamp(char *buf, size_t l, usec_t t) {
sec = (time_t) (t / USEC_PER_SEC);
- if (strftime(buf, l, "%a
,
%Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm)) <= 0)
+ if (strftime(buf, l, "%a %Y-%m-%d %H:%M:%S %Z", localtime_r(&sec, &tm)) <= 0)
return NULL;
return buf;