Skip to content

Commit

Permalink
os-posix: cleanup: Replace fprintf with error_report in remaining cal…
Browse files Browse the repository at this point in the history
…l sites

Signed-off-by: Ian Jackson <[email protected]>
CC: Paolo Bonzini <[email protected]>
CC: Markus Armbruster <[email protected]>
CC: Daniel P. Berrange <[email protected]>
CC: Michael Tokarev <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
  • Loading branch information
ijackson-citrix committed Apr 26, 2018
1 parent 4473348 commit 22cd4f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os-posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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("/")) {
Expand Down

0 comments on commit 22cd4f4

Please sign in to comment.