From: Philippe Mathieu-Daudé Date: Tue, 16 May 2017 00:11:49 +0000 (-0300) Subject: oslib: strip trailing '\n' from error_setg() string argument X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=462e5d506573e61adce70f53176d5ae85d1ba92a;p=qemu.git 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é Reviewed-by: Eric Blake Reviewed-by: Laurent Vivier Signed-off-by: Stefan Hajnoczi --- diff --git a/util/oslib-posix.c b/util/oslib-posix.c index 7e28c161b2..9ab2eb221b 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);