aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/bsdload.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-06-02 13:24:37 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-06-02 13:26:59 +0100
commit9bb931802e6ab5ab6947e3cb9cea934fc0724274 (patch)
treefe6e1d0ffaed3979e4ddbb60427b1a18a995c845 /bsd-user/bsdload.c
parentd7d3d6092cb7edc75dc49fb90c86dd5425ab4805 (diff)
downloadqemu-9bb931802e6ab5ab6947e3cb9cea934fc0724274.zip
qemu-9bb931802e6ab5ab6947e3cb9cea934fc0724274.tar.gz
qemu-9bb931802e6ab5ab6947e3cb9cea934fc0724274.tar.bz2
Revert "bsd-user: replace fprintf(stderr, ...) with error_report()"
This reverts commit 1fba509527beb74bdcf50bc07ad3cd8244ad9c61. That commit converted various fprintf(stderr, ...) calls to use error_report(); however none of these bsd-user files include a header which gives a prototype for error_report, so this causes compiler warnings. Since these are just straightforward reporting of command line errors, we should handle these in the obvious way by printing to stderr, as we do for linux-user. There's no need to drag in the error-handling framework for this, especially since user-mode doesn't have the "maybe we need to send this to the monitor" issues system emulation does. Acked-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'bsd-user/bsdload.c')
-rw-r--r--bsd-user/bsdload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index 6b52e08..2abc713 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user/bsdload.c
@@ -183,7 +183,7 @@ int loader_exec(const char * filename, char ** argv, char ** envp,
&& bprm.buf[3] == 'F') {
retval = load_elf_binary(&bprm,regs,infop);
} else {
- error_report("Unknown binary format");
+ fprintf(stderr, "Unknown binary format\n");
return -1;
}
}