diff options
Diffstat (limited to 'malloc/mtrace-impl.c')
-rw-r--r-- | malloc/mtrace-impl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/malloc/mtrace-impl.c b/malloc/mtrace-impl.c index 83008ca..f5f19c2 100644 --- a/malloc/mtrace-impl.c +++ b/malloc/mtrace-impl.c @@ -65,9 +65,9 @@ tr_where (const void *caller, Dl_info *info) offset); } - fprintf (mallstream, "@ %s%s%s[%p] ", info->dli_fname ? : "", - info->dli_fname ? ":" : "", - buf, caller); + fprintf (mallstream, "@ %s%s%s[0x%" PRIxPTR "] ", + info->dli_fname ? : "", info->dli_fname ? ":" : "", buf, + caller - info->dli_fbase); } else fprintf (mallstream, "@ [%p] ", caller); |