mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
142659b89c
commit
13ee9e30c8
8 changed files with 24 additions and 26 deletions
|
@ -337,7 +337,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
|
|||
}
|
||||
|
||||
if (size != VHOST_USER_HDR_SIZE) {
|
||||
g_test_message("Wrong message size received %d\n", size);
|
||||
g_test_message("Wrong message size received %d", size);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -348,7 +348,7 @@ static void chr_read(void *opaque, const uint8_t *buf, int size)
|
|||
p += VHOST_USER_HDR_SIZE;
|
||||
size = qemu_chr_fe_read_all(chr, p, msg.size);
|
||||
if (size != msg.size) {
|
||||
g_test_message("Wrong message size received %d != %d\n",
|
||||
g_test_message("Wrong message size received %d != %d",
|
||||
size, msg.size);
|
||||
return;
|
||||
}
|
||||
|
@ -476,7 +476,7 @@ static const char *init_hugepagefs(void)
|
|||
}
|
||||
|
||||
if (access(path, R_OK | W_OK | X_OK)) {
|
||||
g_test_message("access on path (%s): %s\n", path, strerror(errno));
|
||||
g_test_message("access on path (%s): %s", path, strerror(errno));
|
||||
abort();
|
||||
return NULL;
|
||||
}
|
||||
|
@ -486,13 +486,13 @@ static const char *init_hugepagefs(void)
|
|||
} while (ret != 0 && errno == EINTR);
|
||||
|
||||
if (ret != 0) {
|
||||
g_test_message("statfs on path (%s): %s\n", path, strerror(errno));
|
||||
g_test_message("statfs on path (%s): %s", path, strerror(errno));
|
||||
abort();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (fs.f_type != HUGETLBFS_MAGIC) {
|
||||
g_test_message("Warning: path not on HugeTLBFS: %s\n", path);
|
||||
g_test_message("Warning: path not on HugeTLBFS: %s", path);
|
||||
abort();
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue