git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d78df
)
gencache: fix an extra newline in a DEBUG message in gencache_set_data_blob()
author
Michael Adam
<obnox@samba.org>
Wed, 13 Feb 2013 08:46:33 +0000
(09:46 +0100)
committer
Michael Adam
<obnox@samba.org>
Tue, 19 Feb 2013 12:58:11 +0000
(13:58 +0100)
by using timestring() instead of ctime()
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/gencache.c
patch
|
blob
|
history
diff --git
a/source3/lib/gencache.c
b/source3/lib/gencache.c
index e240daa2a441c6910a8d578e2f22564dc49cbe86..18bfc7ccf9daf653aa6e2b901049791961b2a4fa 100644
(file)
--- a/
source3/lib/gencache.c
+++ b/
source3/lib/gencache.c
@@
-288,7
+288,7
@@
bool gencache_set_data_blob(const char *keystr, const DATA_BLOB *blob,
DEBUG(10, ("Adding cache entry with key=[%s] and timeout="
"[%s] (%d seconds %s)\n", keystr,
-
ctime(&
timeout),
+
timestring(talloc_tos(),
timeout),
(int)(timeout - time(NULL)),
timeout > time(NULL) ? "ahead" : "in the past"));