libpayload/arch/x86: Fix register alignment in exception state dump
Removed an extra space character from the `printf` format string in `dump_exception_state` to ensure proper alignment of register values when printed during exception handling. BUG=b:336265399 TEST=Built and booted google/rex64 successfully. Verified correct alignment in exception state dumps. Change-Id: I8ff92775e32ee754967b1b0a43cd68971b4aadfc Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83047 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -162,12 +162,12 @@ static void dump_exception_state(void)
|
||||
#if CONFIG(LP_ARCH_X86_64)
|
||||
printf("REG_R8: 0x%016zx\n", exception_state->regs.reg_r8);
|
||||
printf("REG_R9: 0x%016zx\n", exception_state->regs.reg_r9);
|
||||
printf("REG_R10: 0x%016zx\n", exception_state->regs.reg_r10);
|
||||
printf("REG_R11: 0x%016zx\n", exception_state->regs.reg_r11);
|
||||
printf("REG_R12: 0x%016zx\n", exception_state->regs.reg_r12);
|
||||
printf("REG_R13: 0x%016zx\n", exception_state->regs.reg_r13);
|
||||
printf("REG_R14: 0x%016zx\n", exception_state->regs.reg_r14);
|
||||
printf("REG_R15: 0x%016zx\n", exception_state->regs.reg_r15);
|
||||
printf("REG_R10: 0x%016zx\n", exception_state->regs.reg_r10);
|
||||
printf("REG_R11: 0x%016zx\n", exception_state->regs.reg_r11);
|
||||
printf("REG_R12: 0x%016zx\n", exception_state->regs.reg_r12);
|
||||
printf("REG_R13: 0x%016zx\n", exception_state->regs.reg_r13);
|
||||
printf("REG_R14: 0x%016zx\n", exception_state->regs.reg_r14);
|
||||
printf("REG_R15: 0x%016zx\n", exception_state->regs.reg_r15);
|
||||
#endif
|
||||
printf("CS: 0x%04x\n", exception_state->regs.cs);
|
||||
printf("DS: 0x%04x\n", exception_state->regs.ds);
|
||||
|
Reference in New Issue
Block a user