1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Michael Adam 2013-02-13 09:46:33 +01:00
parent 86d78dfa83
commit f211b57dd2

View File

@ -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"));