diff options
| author | Laurent Vivier | 2016-06-20 11:51:32 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2016-09-13 17:12:34 +0200 |
| commit | 8223f345b9ba787eff1ae65114523f513fd27906 (patch) | |
| tree | 37150273226e8a3fd0a971a5142b740f7bd24d0c /linux-user | |
| parent | pic: fix typo in error message: KVM_GET_IRQCHIP -> KVM_SET_IRQCHIP (diff) | |
| download | qemu-8223f345b9ba787eff1ae65114523f513fd27906.tar.gz qemu-8223f345b9ba787eff1ae65114523f513fd27906.tar.xz qemu-8223f345b9ba787eff1ae65114523f513fd27906.zip | |
linux-user, trivial: display "0x%x" instead of "0x%d"
Display an exception number, generally defined as an hexadecimal
number (for instance, EXCP_HLT is 0x10001).
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
| -rw-r--r-- | linux-user/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 6004ece152..3ad70f8a6e 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2030,7 +2030,7 @@ void cpu_loop(CPUPPCState *env) /* just indicate that signals should be handled asap */ break; default: - cpu_abort(cs, "Unknown exception 0x%d. Aborting\n", trapnr); + cpu_abort(cs, "Unknown exception 0x%x. Aborting\n", trapnr); break; } process_pending_signals(env); |
