]> git.proxmox.com Git - qemu.git/commit
linux-user: If loading fails, print error as string, not number
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Aug 2012 06:55:53 +0000 (06:55 +0000)
committerRiku Voipio <riku.voipio@linaro.org>
Fri, 12 Oct 2012 11:25:56 +0000 (14:25 +0300)
commit885c1d10b803fc37e6656e733ba916c702b6f515
treeccfdb332143a1e203c46492ef35ef8657b463daa
parenta05c64091509056b7e321537196db967f2545601
linux-user: If loading fails, print error as string, not number

If the attempt to load the guest executable fails, print the
error message as a string, not a number. This requires us to
fix a couple of places in loader_exec() where we were returning
-1 instead of a valid negative errno.

The change allows us to drop the "Unknown binary format" message
because the strerror-enhanced message is now a more self-explanatory
"Error while loading $guest-binary: Exec format error".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/linuxload.c
linux-user/main.c