From 9bb931802e6ab5ab6947e3cb9cea934fc0724274 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 2 Jun 2014 13:24:37 +0100 Subject: 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 Signed-off-by: Peter Maydell --- bsd-user/bsdload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd-user/bsdload.c') diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c index 6b52e08720..2abc7136e0 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; } } -- cgit v1.2.3