gencache: fix an extra newline in a DEBUG message in gencache_set_data_blob()
authorMichael Adam <obnox@samba.org>
Wed, 13 Feb 2013 08:46:33 +0000 (09:46 +0100)
committerMichael 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

index e240daa2a441c6910a8d578e2f22564dc49cbe86..18bfc7ccf9daf653aa6e2b901049791961b2a4fa 100644 (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"));