From: Michael Adam Date: Wed, 13 Feb 2013 08:45:09 +0000 (+0100) Subject: gencache: fix an extra newline in a DEBUG message in gencache_iterate_fn() X-Git-Tag: tevent-0.9.18~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d78dfa838e8f4432d0ba73828b1f9bfc7877b8;p=thirdparty%2Fsamba.git gencache: fix an extra newline in a DEBUG message in gencache_iterate_fn() by using timestring() instead of ctime() Signed-off-by: Michael Adam Reviewed-by: Stefan Metzmacher --- diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c index da438fdd5d5..e240daa2a44 100644 --- a/source3/lib/gencache.c +++ b/source3/lib/gencache.c @@ -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);