diff mbox series

[v1,4/9] tests/plugin: correctly honour io_count

Message ID 20200602154624.4460-5-alex.bennee@linaro.org (mailing list archive)
State New, archived
Headers show
Series plugins/next (bug fixes, hwprofile, lockstep) | expand

Commit Message

Alex Bennée June 2, 2020, 3:46 p.m. UTC
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 tests/plugin/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Philippe Mathieu-Daudé June 2, 2020, 5:07 p.m. UTC | #1
On 6/2/20 5:46 PM, Alex Bennée wrote:

Fixes: 671f760b93b ?

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  tests/plugin/mem.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/plugin/mem.c b/tests/plugin/mem.c
> index 878abf09d19..4725bd851d8 100644
> --- a/tests/plugin/mem.c
> +++ b/tests/plugin/mem.c
> @@ -28,7 +28,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
>  
>      g_string_printf(out, "mem accesses: %" PRIu64 "\n", mem_count);
>      if (do_haddr) {
> -        g_string_append_printf(out, "io accesses: %" PRIu64 "\n", mem_count);
> +        g_string_append_printf(out, "io accesses: %" PRIu64 "\n", io_count);
>      }
>      qemu_plugin_outs(out->str);
>  }
>
diff mbox series

Patch

diff --git a/tests/plugin/mem.c b/tests/plugin/mem.c
index 878abf09d19..4725bd851d8 100644
--- a/tests/plugin/mem.c
+++ b/tests/plugin/mem.c
@@ -28,7 +28,7 @@  static void plugin_exit(qemu_plugin_id_t id, void *p)
 
     g_string_printf(out, "mem accesses: %" PRIu64 "\n", mem_count);
     if (do_haddr) {
-        g_string_append_printf(out, "io accesses: %" PRIu64 "\n", mem_count);
+        g_string_append_printf(out, "io accesses: %" PRIu64 "\n", io_count);
     }
     qemu_plugin_outs(out->str);
 }