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/sym.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/sym.c')
-rw-r--r-- | runtime/sym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index 8d344b4a..d8ad3f2c 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -180,7 +180,7 @@ void _stp_symbol_print (unsigned long address) name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL); - _stp_printf ("%p", (void *)address); + _stp_printf ("%p", (int64_t)address); if (name) { if (modname) @@ -200,7 +200,7 @@ void _stp_symbol_snprint (char *str, size_t len, unsigned long address) if (name) strlcpy(str, name, len); else - snprintf(str, len, "%p", (void *)address); + _stp_snprintf(str, len, "%p", (int64_t)address); } /** @} */ |