diff mbox series

rt-tests: cyclictest: add '\n' symbol for printf in rstat_shm_open()

Message ID b5d8bafb-6bd2-7fec-2f78-86c6d2508408@huawei.com
State New
Headers show
Series rt-tests: cyclictest: add '\n' symbol for printf in rstat_shm_open() | expand

Commit Message

Yunfeng Ye June 20, 2020, 2:44 a.m. UTC
The infomation "pid = xxx" is printed with other infomation on the same
line. so add '\n' symbol for printf in rstat_shm_open().

Signed-off-by: yeyunfeng <yeyunfeng@huawei.com>
---
 src/cyclictest/cyclictest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index b3d72caa10ce..d1c148563dad 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -1910,7 +1910,7 @@  static int rstat_shm_open(void)
 	pid_t pid;

 	pid = getpid();
-	printf("pid = %d", pid);
+	printf("pid = %d\n", pid);

 	snprintf(shm_name, SHM_BUF_SIZE, "%s%d", "/cyclictest", pid);