mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
os-posix: cleanup: Replace fprintf with error_report in remaining call sites
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com> CC: Paolo Bonzini <pbonzini@redhat.com> CC: Markus Armbruster <armbru@redhat.com> CC: Daniel P. Berrange <berrange@redhat.com> CC: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
4473348adf
commit
22cd4f4835
|
@ -129,7 +129,7 @@ void os_set_proc_name(const char *s)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "Change of process name not supported by your OS\n");
|
error_report("Change of process name not supported by your OS");
|
||||||
exit(1);
|
exit(1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ static void change_root(void)
|
||||||
{
|
{
|
||||||
if (chroot_dir) {
|
if (chroot_dir) {
|
||||||
if (chroot(chroot_dir) < 0) {
|
if (chroot(chroot_dir) < 0) {
|
||||||
fprintf(stderr, "chroot failed\n");
|
error_report("chroot failed");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (chdir("/")) {
|
if (chdir("/")) {
|
||||||
|
|
Loading…
Reference in a new issue