diff options
author | Thomas Huth <thuth@redhat.com> | 2019-03-01 16:10:18 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-03-07 22:16:22 +0100 |
commit | 13ee9e30c8855a8b8d62b05992cfc65fc57a8df5 (patch) | |
tree | d842d63dacca1c6c2d2d5b7f853610eb578bd4ce /tests/rtl8139-test.c | |
parent | 142659b89cf45ab9117d4abe771fff67c74dfac5 (diff) |
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/rtl8139-test.c')
-rw-r--r-- | tests/rtl8139-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/rtl8139-test.c b/tests/rtl8139-test.c index 68bfc42178..49e3f03d98 100644 --- a/tests/rtl8139-test.c +++ b/tests/rtl8139-test.c @@ -46,12 +46,12 @@ static QPCIDevice *get_device(void) static unsigned __attribute__((unused)) in_##name(void) \ { \ unsigned res = qpci_io_read##len(dev, dev_bar, (val)); \ - g_test_message("*%s -> %x\n", #name, res); \ + g_test_message("*%s -> %x", #name, res); \ return res; \ } \ static void out_##name(unsigned v) \ { \ - g_test_message("%x -> *%s\n", v, #name); \ + g_test_message("%x -> *%s", v, #name); \ qpci_io_write##len(dev, dev_bar, (val), v); \ } @@ -176,7 +176,7 @@ static void test_timer(void) } } - g_test_message("Everythink is ok!\n"); + g_test_message("Everythink is ok!"); } |