From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEvrz-0003oM-Cd for qemu-devel@nongnu.org; Mon, 20 Jun 2016 05:51:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEvrw-0004Gr-BF for qemu-devel@nongnu.org; Mon, 20 Jun 2016 05:51:51 -0400 From: Laurent Vivier Date: Mon, 20 Jun 2016 11:51:32 +0200 Message-Id: <1466416292-9615-1-git-send-email-laurent@vivier.eu> Subject: [Qemu-devel] [PATCH] linux-user, trivial: display "0x%x" instead of "0x%d" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: qemu-devel@nongnu.org, qemu-trivial@nongnu.org, Laurent Vivier Display an exception number, generally defined as an hexadecimal number (for instance, EXCP_HLT is 0x10001). Signed-off-by: Laurent Vivier --- Resent to fix qemu-trivial email address. linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index b9a4e0e..c79f5cb 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2036,7 +2036,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); -- 2.5.5