aboutsummaryrefslogtreecommitdiff
path: root/tests/m48t59-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/m48t59-test.c
parent142659b89cf45ab9117d4abe771fff67c74dfac5 (diff)
downloadqemu-13ee9e30c8855a8b8d62b05992cfc65fc57a8df5.zip
qemu-13ee9e30c8855a8b8d62b05992cfc65fc57a8df5.tar.gz
qemu-13ee9e30c8855a8b8d62b05992cfc65fc57a8df5.tar.bz2
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/m48t59-test.c')
-rw-r--r--tests/m48t59-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/m48t59-test.c b/tests/m48t59-test.c
index 4abf9c6..b94a123 100644
--- a/tests/m48t59-test.c
+++ b/tests/m48t59-test.c
@@ -199,9 +199,9 @@ static void bcd_check_time(void)
t = (long)mktime(datep);
s = (long)mktime(&start);
if (t < s) {
- g_test_message("RTC is %ld second(s) behind wall-clock\n", (s - t));
+ g_test_message("RTC is %ld second(s) behind wall-clock", (s - t));
} else {
- g_test_message("RTC is %ld second(s) ahead of wall-clock\n", (t - s));
+ g_test_message("RTC is %ld second(s) ahead of wall-clock", (t - s));
}
g_assert_cmpint(ABS(t - s), <=, wiggle);