Skip to content

Commit

Permalink
Print trapInfo in IA32 signal handler as hexadecimal number rather th…
Browse files Browse the repository at this point in the history
…an as a decimal number.
  • Loading branch information
erik-brangs committed Jan 19, 2016
1 parent 4dc67ce commit 4df7623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bootloader/sysSignal_ia32.c
Expand Up @@ -655,7 +655,7 @@ EXTERNAL void setupDeliverHardwareException(void *context, Address vmRegisters,
sp = sp - __SIZEOF_POINTER__; /* next parameter is trap info */
((Word *)sp)[0] = trapInfo;
IA32_EDX(context) = trapInfo;
VERBOSE_SIGNALS_PRINTF("%s: trap info is %d\n", Me, trapInfo);
VERBOSE_SIGNALS_PRINTF("%s: trap info is %x\n", Me, trapInfo);

sp = sp - __SIZEOF_POINTER__; /* return address - looks like called from failing instruction */
*(Address *) sp = instructionFollowingPtr;
Expand Down

0 comments on commit 4df7623

Please sign in to comment.