diff options
author | Subrata Banik <subratabanik@google.com> | 2024-06-11 14:41:48 +0000 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2024-06-12 19:40:12 +0000 |
commit | 04202d1a7e4e3d4216fee7d597be78ebf47de970 (patch) | |
tree | 66c44016272e6b3892a0aeb5053765c234df4733 /payloads | |
parent | e437cb5f87a022c5e219ce1aadfd16a2078e0e86 (diff) |
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>
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/arch/x86/exception.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/payloads/libpayload/arch/x86/exception.c b/payloads/libpayload/arch/x86/exception.c index a43a993220..fdab042902 100644 --- a/payloads/libpayload/arch/x86/exception.c +++ b/payloads/libpayload/arch/x86/exception.c @@ -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); |