mirror of
https://github.com/mii443/qemu.git
synced 2025-08-30 19:09:35 +00:00
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>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
0db1851bec
commit
462e5d5065
@ -400,7 +400,7 @@ void os_mem_prealloc(int fd, char *area, size_t memory, int smp_cpus,
|
|||||||
/* touch pages simultaneously */
|
/* touch pages simultaneously */
|
||||||
if (touch_all_pages(area, hpagesize, numpages, smp_cpus)) {
|
if (touch_all_pages(area, hpagesize, numpages, smp_cpus)) {
|
||||||
error_setg(errp, "os_mem_prealloc: Insufficient free host memory "
|
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);
|
ret = sigaction(SIGBUS, &oldact, NULL);
|
||||||
|
Reference in New Issue
Block a user