From 4f295b51c85ada0efca7594604ada44853ac32d5 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 16 May 2007 01:56:12 +0000 Subject: 2007-05-15 Martin Hunt * vsprintf.c: Add comment about %p. * regs.c, stack*.c, sym.c: Fix %p calls. --- runtime/sym.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/sym.c') 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); } /** @} */ -- cgit