linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] rt-tests: cyclictest: remove the debug log "pid = xxx" in rstat_shm_open()
@ 2020-07-02  2:22 Yunfeng Ye
  2020-07-02 18:40 ` John Kacur
  0 siblings, 1 reply; 2+ messages in thread
From: Yunfeng Ye @ 2020-07-02  2:22 UTC (permalink / raw)
  To: williams, John Kacur, linux-rt-users; +Cc: Shiyuan Hu, Hewenliang

The infomation "pid = xxx" is printed with other infomation on the same
line. so remove this debug log in rstat_shm_open().

Signed-off-by: yeyunfeng <yeyunfeng@huawei.com>
---
v1 -> v2:
 - remove the debug code

 src/cyclictest/cyclictest.c | 1 -
 1 file changed, 1 deletion(-)

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

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

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

-- 
1.8.3.1


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

* Re: [PATCH v2] rt-tests: cyclictest: remove the debug log "pid = xxx" in rstat_shm_open()
  2020-07-02  2:22 [PATCH v2] rt-tests: cyclictest: remove the debug log "pid = xxx" in rstat_shm_open() Yunfeng Ye
@ 2020-07-02 18:40 ` John Kacur
  0 siblings, 0 replies; 2+ messages in thread
From: John Kacur @ 2020-07-02 18:40 UTC (permalink / raw)
  To: Yunfeng Ye; +Cc: williams, linux-rt-users, Shiyuan Hu, Hewenliang



On Thu, 2 Jul 2020, Yunfeng Ye wrote:

> The infomation "pid = xxx" is printed with other infomation on the same
> line. so remove this debug log in rstat_shm_open().
> 
> Signed-off-by: yeyunfeng <yeyunfeng@huawei.com>
> ---
> v1 -> v2:
>  - remove the debug code
> 
>  src/cyclictest/cyclictest.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
> index b3d72caa10ce..8353f561bb46 100644
> --- a/src/cyclictest/cyclictest.c
> +++ b/src/cyclictest/cyclictest.c
> @@ -1910,7 +1910,6 @@ static int rstat_shm_open(void)
>  	pid_t pid;
> 
>  	pid = getpid();
> -	printf("pid = %d", pid);
> 
>  	snprintf(shm_name, SHM_BUF_SIZE, "%s%d", "/cyclictest", pid);
> 
> -- 
> 1.8.3.1
> 
> 

Applied, thanks

Signed-off-by: John Kacur <jkacur@redhat.com>

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02  2:22 [PATCH v2] rt-tests: cyclictest: remove the debug log "pid = xxx" in rstat_shm_open() Yunfeng Ye
2020-07-02 18:40 ` John Kacur

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