diff mbox series

regs: print correct PTCR register

Message ID 20180720130600.16216-1-npiggin@gmail.com
State Accepted
Headers show
Series regs: print correct PTCR register | expand

Commit Message

Nicholas Piggin July 20, 2018, 1:06 p.m. UTC
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
 libpdbg/chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/chip.c b/libpdbg/chip.c
index f04bb15..079592c 100644
--- a/libpdbg/chip.c
+++ b/libpdbg/chip.c
@@ -387,7 +387,7 @@  int ram_state_thread(struct pdbg_target *thread, struct thread_regs *regs)
 	printf("LPCR  : 0x%016" PRIx64 "\n", regs->lpcr);
 
 	ram_getspr(thread, 464, &regs->ptcr);
-	printf("PTCR  : 0x%016" PRIx64 "\n", regs->lpcr);
+	printf("PTCR  : 0x%016" PRIx64 "\n", regs->ptcr);
 
 	ram_getspr(thread, 319, &regs->lpidr);
 	printf("LPIDR : 0x%016" PRIx64 "\n", regs->lpidr);