From 983c0fd434743685579999d26a04148b533929df Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 27 Apr 2018 21:22:32 +0000 Subject: [PATCH] Use %p to print uintptr_t values rather than %z in MIPS single-step code. --- sys/mips/mips/pm_machdep.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/mips/mips/pm_machdep.c b/sys/mips/mips/pm_machdep.c index 18fccfbd82e6..ae4dc9d9c7c6 100644 --- a/sys/mips/mips/pm_machdep.c +++ b/sys/mips/mips/pm_machdep.c @@ -264,8 +264,9 @@ ptrace_single_step(struct thread *td) va = locr0->pc + 4; } if (td->td_md.md_ss_addr) { - printf("SS %s (%d): breakpoint already set at %zx (va %zx)\n", - p->p_comm, p->p_pid, td->td_md.md_ss_addr, va); /* XXX */ + printf("SS %s (%d): breakpoint already set at %p (va %p)\n", + p->p_comm, p->p_pid, (void *)td->td_md.md_ss_addr, + (void *)va); /* XXX */ error = EFAULT; goto out; } @@ -500,8 +501,8 @@ ptrace_clear_single_step(struct thread *td) if (error != 0) { log(LOG_ERR, - "SS %s %d: can't restore instruction at %zx: %x\n", - p->p_comm, p->p_pid, td->td_md.md_ss_addr, + "SS %s %d: can't restore instruction at %p: %x\n", + p->p_comm, p->p_pid, (void *)td->td_md.md_ss_addr, td->td_md.md_ss_instr); } td->td_md.md_ss_addr = 0;