summaryrefslogtreecommitdiffstats
path: root/runtime/stack-ppc64.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-05-16 01:56:12 +0000
committerhunt <hunt>2007-05-16 01:56:12 +0000
commit4f295b51c85ada0efca7594604ada44853ac32d5 (patch)
treea742fc02095a3eb655d6caa0f612790e72dbd6eb /runtime/stack-ppc64.c
parent3c3dbd3bc57a1db3972ee9ebbf15d95402375146 (diff)
downloadsystemtap-steved-4f295b51c85ada0efca7594604ada44853ac32d5.tar.gz
systemtap-steved-4f295b51c85ada0efca7594604ada44853ac32d5.tar.xz
systemtap-steved-4f295b51c85ada0efca7594604ada44853ac32d5.zip
2007-05-15 Martin Hunt <hunt@redhat.com>
* vsprintf.c: Add comment about %p. * regs.c, stack*.c, sym.c: Fix %p calls.
Diffstat (limited to 'runtime/stack-ppc64.c')
-rw-r--r--runtime/stack-ppc64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stack-ppc64.c b/runtime/stack-ppc64.c
index 4d4e49bb..3dc38526 100644
--- a/runtime/stack-ppc64.c
+++ b/runtime/stack-ppc64.c
@@ -23,14 +23,14 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
ip = _sp[2];
if (!firstframe || ip != lr) {
if (verbose) {
- _stp_printf("[%p] [%p] ", sp, ip);
+ _stp_printf("[0x%016lx] [0x%016lx] ", sp, ip);
_stp_symbol_print(ip);
if (firstframe)
_stp_print(" (unreliable)");
_stp_print_char('\n');
}
else
- _stp_printf("%p ", ip);
+ _stp_printf("0x%016lx ", ip);
}
firstframe = 0;
/*
@@ -51,8 +51,8 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels)
firstframe = 1;
}
else {
- _stp_printf("%p ",regs->nip);
- _stp_printf("%p ",regs->link);
+ _stp_printf("0x%016lx ",regs->nip);
+ _stp_printf("0x%016lx ",regs->link);
}
}