pie/log: print space after timestamp

Submitted by Andrey Vagin on May 15, 2018, 8:32 p.m.

Details

Message ID 20180515203206.5100-1-avagin@virtuozzo.com
State Accepted
Series "pie/log: print space after timestamp"
Headers show

Commit Message

Andrey Vagin May 15, 2018, 8:32 p.m.
(00.566486)pie: 1: seccomp: mode 0 on tid 1

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

Patch hide | download patch | download mbox

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);