summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-02-13 09:46:33 +0100
committerMichael Adam <obnox@samba.org>2013-02-19 13:58:11 +0100
commitf211b57dd28e5aab69480f9e9764864922f988e4 (patch)
treeee27e6576f7bfb09bea5b83d4fedc77dc9cf61f4 /source3
parent86d78dfa838e8f4432d0ba73828b1f9bfc7877b8 (diff)
downloadsamba-f211b57dd28e5aab69480f9e9764864922f988e4.tar.gz
samba-f211b57dd28e5aab69480f9e9764864922f988e4.tar.bz2
samba-f211b57dd28e5aab69480f9e9764864922f988e4.zip
gencache: fix an extra newline in a DEBUG message in gencache_set_data_blob()
by using timestring() instead of ctime() Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/gencache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index e240daa2a4..18bfc7ccf9 100644
--- 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"));