diff options
author | hunt <hunt> | 2007-05-16 01:56:12 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-05-16 01:56:12 +0000 |
commit | 4f295b51c85ada0efca7594604ada44853ac32d5 (patch) | |
tree | a742fc02095a3eb655d6caa0f612790e72dbd6eb /runtime/stack.c | |
parent | 3c3dbd3bc57a1db3972ee9ebbf15d95402375146 (diff) | |
download | systemtap-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.c')
-rw-r--r-- | runtime/stack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/stack.c b/runtime/stack.c index 51be05bd..dcf23e06 100644 --- a/runtime/stack.c +++ b/runtime/stack.c @@ -84,7 +84,7 @@ void _stp_stack_print(struct pt_regs *regs, int verbose, struct kretprobe_instan } _stp_print_char('\n'); } else - _stp_printf ("%p ", REG_IP(regs)); + _stp_printf ("%p ", (int64_t)REG_IP(regs)); __stp_stack_print (regs, verbose, 0); } @@ -116,9 +116,9 @@ void _stp_stack_snprint (char *str, int size, struct pt_regs *regs, int verbose, void _stp_ustack_print (char *str) { struct pt_regs *nregs = ((struct pt_regs *) (THREAD_SIZE + (unsigned long) current->thread_info)) - 1; - _stp_printf ("%p : [user]\n", REG_IP(nregs)); + _stp_printf ("%p : [user]\n", (int64_t)REG_IP(nregs)); if (REG_SP(nregs)) - _stp_printf ("%p : [user]\n", *(unsigned long *)REG_SP(nregs)); + _stp_printf ("%p : [user]\n", (int64_t)(*(unsigned long *)REG_SP(nregs))); } #endif /* 0 */ |