gencache: fix an extra newline in a DEBUG message in gencache_iterate_fn()
authorMichael Adam <obnox@samba.org>
Wed, 13 Feb 2013 08:45:09 +0000 (09:45 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2013 12:58:10 +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 da438fdd5d5441f3bba905544b10d5f2feb49119..e240daa2a441c6910a8d578e2f22564dc49cbe86 100644 (file)
@@ -859,7 +859,7 @@ static void gencache_iterate_fn(const char *key, DATA_BLOB value,
 
        DEBUG(10, ("Calling function with arguments "
                   "(key=[%s], value=[%s], timeout=[%s])\n",
-                  key, valstr, ctime(&timeout)));
+                  key, valstr, timestring(talloc_tos(), timeout)));
 
        state->fn(key, valstr, timeout, state->private_data);