diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2017-05-15 21:11:49 -0300 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-06-07 14:38:44 +0100 |
commit | 462e5d506573e61adce70f53176d5ae85d1ba92a (patch) | |
tree | a94652c6766dd5d298c32a1526320949e61af067 /util/oslib-posix.c | |
parent | 0db1851becbefe3e50cfc03776fb1f75817376af (diff) | |
download | qemu-462e5d506573e61adce70f53176d5ae85d1ba92a.zip qemu-462e5d506573e61adce70f53176d5ae85d1ba92a.tar.gz qemu-462e5d506573e61adce70f53176d5ae85d1ba92a.tar.bz2 |
oslib: strip trailing '\n' from error_setg() string argument
spotted by Coccinelle script scripts/coccinelle/err-bad-newline.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util/oslib-posix.c')
-rw-r--r-- | util/oslib-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 7e28c16..9ab2eb2 100644 --- a/util/oslib-posix.c +++ b/util/oslib-posix.c @@ -400,7 +400,7 @@ void os_mem_prealloc(int fd, char *area, size_t memory, int smp_cpus, /* touch pages simultaneously */ if (touch_all_pages(area, hpagesize, numpages, smp_cpus)) { error_setg(errp, "os_mem_prealloc: Insufficient free host memory " - "pages available to allocate guest RAM\n"); + "pages available to allocate guest RAM"); } ret = sigaction(SIGBUS, &oldact, NULL); |