ctdb-logging: Add missing newline when logging to file
authorMartin Schwenke <martin@meltin.net>
Wed, 15 Oct 2014 09:04:45 +0000 (20:04 +1100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Nov 2014 19:58:10 +0000 (20:58 +0100)
This got lost with the transition to the new Samba debug code.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit 96106e085a3a8bab51c8b14e85ba1a817d5fa55b)

ctdb/server/ctdb_logging.c

index 3aba37b81d570fd3067241d8c851765c55f4db8f..e09aa94f984ce3aeb07bbe4f0b2166540c7ec980 100644 (file)
@@ -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) {