linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rt-tests: cyclictest: add '\n' symbol for printf in rstat_shm_open()
@ 2020-06-20  2:44 Yunfeng Ye
  2020-07-01 15:38 ` John Kacur
  0 siblings, 1 reply; 3+ messages in thread
From: Yunfeng Ye @ 2020-06-20  2:44 UTC (permalink / raw)
  To: williams, jkacur, linux-rt-users, Shiyuan Hu, Hewenliang

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

-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-02  1:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20  2:44 [PATCH] rt-tests: cyclictest: add '\n' symbol for printf in rstat_shm_open() Yunfeng Ye
2020-07-01 15:38 ` John Kacur
2020-07-02  1:25   ` Yunfeng Ye

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).