summary refs log tree commit diff stats
path: root/tests/ivshmem-test.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-03-01 16:10:18 +0100
committerThomas Huth <thuth@redhat.com>2019-03-07 22:16:22 +0100
commit13ee9e30c8855a8b8d62b05992cfc65fc57a8df5 (patch)
treed842d63dacca1c6c2d2d5b7f853610eb578bd4ce /tests/ivshmem-test.c
parent142659b89cf45ab9117d4abe771fff67c74dfac5 (diff)
downloadfocaccia-qemu-13ee9e30c8855a8b8d62b05992cfc65fc57a8df5.tar.gz
focaccia-qemu-13ee9e30c8855a8b8d62b05992cfc65fc57a8df5.zip
tests: Do not use "\n" in g_test_message() strings
g_test_message() takes care of the newline on its own, so we
should not use \n in the strings here.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/ivshmem-test.c')
-rw-r--r--tests/ivshmem-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ivshmem-test.c b/tests/ivshmem-test.c
index 942ddc9192..227561fbca 100644
--- a/tests/ivshmem-test.c
+++ b/tests/ivshmem-test.c
@@ -74,7 +74,7 @@ static inline unsigned in_reg(IVState *s, enum Reg reg)
     unsigned res;
 
     res = qpci_io_readl(s->dev, s->reg_bar, reg);
-    g_test_message("*%s -> %x\n", name, res);
+    g_test_message("*%s -> %x", name, res);
 
     return res;
 }
@@ -83,7 +83,7 @@ static inline void out_reg(IVState *s, enum Reg reg, unsigned v)
 {
     const char *name = reg2str(reg);
 
-    g_test_message("%x -> *%s\n", v, name);
+    g_test_message("%x -> *%s", v, name);
     qpci_io_writel(s->dev, s->reg_bar, reg, v);
 }