qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c
@ 2024-04-19  8:58 Philippe Mathieu-Daudé
  2024-04-19 12:59 ` Eric Blake
  2024-04-20 16:43 ` Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-04-19  8:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Stefan Hajnoczi, qemu-block, qemu-trivial,
	Philippe Mathieu-Daudé

We are running this test since almost a year; it is
safe to remove its debug statements, which clutter
CI jobs output:

  ▶  88/100 /nested-aio-poll                      OK
  io_read 0x16bb26158
  io_poll_true 0x16bb26158
  > io_poll_ready
  io_read 0x16bb26164
  < io_poll_ready
  io_poll_true 0x16bb26158
  io_poll_false 0x16bb26164
  > io_poll_ready
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_poll_false 0x16bb26164
  io_read 0x16bb26164
  < io_poll_ready
  88/100 qemu:unit / test-nested-aio-poll        OK

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 tests/unit/test-nested-aio-poll.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/tests/unit/test-nested-aio-poll.c b/tests/unit/test-nested-aio-poll.c
index db33742af3..d8fd92c43b 100644
--- a/tests/unit/test-nested-aio-poll.c
+++ b/tests/unit/test-nested-aio-poll.c
@@ -30,19 +30,16 @@ typedef struct {
 
 static void io_read(EventNotifier *notifier)
 {
-    fprintf(stderr, "%s %p\n", __func__, notifier);
     event_notifier_test_and_clear(notifier);
 }
 
 static bool io_poll_true(void *opaque)
 {
-    fprintf(stderr, "%s %p\n", __func__, opaque);
     return true;
 }
 
 static bool io_poll_false(void *opaque)
 {
-    fprintf(stderr, "%s %p\n", __func__, opaque);
     return false;
 }
 
@@ -50,8 +47,6 @@ static void io_poll_ready(EventNotifier *notifier)
 {
     TestData *td = container_of(notifier, TestData, poll_notifier);
 
-    fprintf(stderr, "> %s\n", __func__);
-
     g_assert(!td->nested);
     td->nested = true;
 
@@ -62,8 +57,6 @@ static void io_poll_ready(EventNotifier *notifier)
     g_assert(aio_poll(td->ctx, true));
 
     td->nested = false;
-
-    fprintf(stderr, "< %s\n", __func__);
 }
 
 /* dummy_notifier never triggers */
-- 
2.41.0



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

* Re: [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c
  2024-04-19  8:58 [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c Philippe Mathieu-Daudé
@ 2024-04-19 12:59 ` Eric Blake
  2024-04-20 16:43 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Blake @ 2024-04-19 12:59 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Stefan Hajnoczi, qemu-block, qemu-trivial

On Fri, Apr 19, 2024 at 10:58:19AM +0200, Philippe Mathieu-Daudé wrote:
> We are running this test since almost a year; it is

Grammar suggestion:

We have been running this test for almost a year;

> safe to remove its debug statements, which clutter
> CI jobs output:
> 
>   ▶  88/100 /nested-aio-poll                      OK
>   io_read 0x16bb26158
>   io_poll_true 0x16bb26158
>   > io_poll_ready
>   io_read 0x16bb26164
>   < io_poll_ready
>   io_poll_true 0x16bb26158
>   io_poll_false 0x16bb26164
>   > io_poll_ready
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_poll_false 0x16bb26164
>   io_read 0x16bb26164
>   < io_poll_ready
>   88/100 qemu:unit / test-nested-aio-poll        OK
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  tests/unit/test-nested-aio-poll.c | 7 -------
>  1 file changed, 7 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization:  qemu.org | libguestfs.org



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

* Re: [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c
  2024-04-19  8:58 [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c Philippe Mathieu-Daudé
  2024-04-19 12:59 ` Eric Blake
@ 2024-04-20 16:43 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2024-04-20 16:43 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Stefan Hajnoczi, qemu-block, qemu-trivial

On 4/19/24 01:58, Philippe Mathieu-Daudé wrote:
> We are running this test since almost a year; it is
> safe to remove its debug statements, which clutter
> CI jobs output:
> 
>    ▶  88/100 /nested-aio-poll                      OK
>    io_read 0x16bb26158
>    io_poll_true 0x16bb26158
>    > io_poll_ready
>    io_read 0x16bb26164
>    < io_poll_ready
>    io_poll_true 0x16bb26158
>    io_poll_false 0x16bb26164
>    > io_poll_ready
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_poll_false 0x16bb26164
>    io_read 0x16bb26164
>    < io_poll_ready
>    88/100 qemu:unit / test-nested-aio-poll        OK
> 
> Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
> ---
>   tests/unit/test-nested-aio-poll.c | 7 -------
>   1 file changed, 7 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


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

end of thread, other threads:[~2024-04-20 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-19  8:58 [PATCH] tests/unit: Remove debug statements in test-nested-aio-poll.c Philippe Mathieu-Daudé
2024-04-19 12:59 ` Eric Blake
2024-04-20 16:43 ` Richard Henderson

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