aboutsummaryrefslogtreecommitdiff
path: root/os-posix.c
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2018-04-16 15:15:51 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2018-04-26 16:29:51 +0100
commit22cd4f4835b2053271e737b1679927b9b8aa4252 (patch)
tree5157d06c3192863d565cbc54fff30fde081df7ee /os-posix.c
parent4473348adf6640ca12b95bc29d1b06796994afb2 (diff)
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>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os-posix.c b/os-posix.c
index 0f59566639..a2ba50d23f 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -129,7 +129,7 @@ void os_set_proc_name(const char *s)
exit(1);
}
#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);
#endif
}
@@ -243,7 +243,7 @@ static void change_root(void)
{
if (chroot_dir) {
if (chroot(chroot_dir) < 0) {
- fprintf(stderr, "chroot failed\n");
+ error_report("chroot failed");
exit(1);
}
if (chdir("/")) {