Skip to content

Commit

Permalink
oslib: strip trailing '\n' from error_setg() string argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and stefanhaRH committed Jun 7, 2017
1 parent 0db1851 commit 462e5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/oslib-posix.c
Expand Up @@ -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);
Expand Down

0 comments on commit 462e5d5

Please sign in to comment.