[CRIU] [PATCH] pie/log: print space after timestamp

Andrei Vagin avagin at virtuozzo.com
Tue May 15 23:32:06 MSK 2018


    (00.566486)pie: 1: seccomp: mode 0 on tid 1

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 compel/plugins/std/log.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/compel/plugins/std/log.c b/compel/plugins/std/log.c
index 81611d1f1..403ea46f7 100644
--- a/compel/plugins/std/log.c
+++ b/compel/plugins/std/log.c
@@ -69,8 +69,9 @@ static void sbuf_log_init(struct simple_buf *b)
 		n = std_vprint_num(pbuf, sizeof(pbuf), (unsigned)now.tv_usec, &s);
 		pad_num(&s, &n, 6);
 		memcpy(b->bp, s, n);
-		b->bp[n] = ')';
-		b->bp += n + 1;
+		b->bp[n++] = ')';
+		b->bp[n++] = ' ';
+		b->bp += n;
 	}
 
 	n = std_vprint_num(pbuf, sizeof(pbuf), sys_gettid(), &s);
-- 
2.14.3



More information about the CRIU mailing list