From 96106e085a3a8bab51c8b14e85ba1a817d5fa55b Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 15 Oct 2014 20:04:45 +1100 Subject: [PATCH] ctdb-logging: Add missing newline when logging to file This got lost with the transition to the new Samba debug code. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/server/ctdb_logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_logging.c b/ctdb/server/ctdb_logging.c index 3aba37b81d5..e09aa94f984 100644 --- a/ctdb/server/ctdb_logging.c +++ b/ctdb/server/ctdb_logging.c @@ -296,7 +296,7 @@ static void ctdb_logfile_log(void *private_ptr, int dbglevel, const char *s) strftime(tbuf,sizeof(tbuf)-1,"%Y/%m/%d %H:%M:%S", tm); - ret = asprintf(&s2, "%s.%06u [%s%5u]: %s", + ret = asprintf(&s2, "%s.%06u [%s%5u]: %s\n", tbuf, (unsigned)t.tv_usec, debug_extra, (unsigned)getpid(), s); if (ret == -1) { -- 2.11.4.GIT