diff options
author | Juan Cespedes <cespedes@debian.org> | 2004-04-04 01:31:38 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2004-04-04 01:31:38 +0200 |
commit | efe85f0668a077b1e851df4b3f87a380cf2269fd (patch) | |
tree | 139d24d388a22b187c0230512460a1a27e7ed3b5 /display_args.c | |
parent | 504a385858a49352bcfceca444ba4f1a7bfd20cd (diff) | |
download | ltrace-efe85f0668a077b1e851df4b3f87a380cf2269fd.tar.gz |
Version 0.3.32
* Fixed wrong version number
* Removed unused file "opt_c.c"
* Remove error when tracing no calls and doing fork()
* Clean-up of sysdeps/linux-gnu/s390/trace.c
* Clean-up of sysdeps/linux-gnu/ppc/trace.c
* Make `--library' option really work (closes: Bug#232321)
* Merged several patches from SuSE:
+ Added some functions to ltrace.conf
+ Handle 64-big ELF files nicely
+ AMD64 support
+ Updated list of syscalls for S/390
+ Improved some debugging statements
Many thanks to Bernhard Kaindl <bk@suse.de> for his great work
Diffstat (limited to 'display_args.c')
-rw-r--r-- | display_args.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/display_args.c b/display_args.c index de1a1c4..fa071af 100644 --- a/display_args.c +++ b/display_args.c @@ -39,7 +39,7 @@ display_arg(enum tof type, struct process * proc, int arg_num, enum arg_type at) if (!arg) { return fprintf(output, "NULL"); } else { - return fprintf(output, "0x%08x", (unsigned)arg); + return fprintf(output, "%p", (unsigned)arg); } case ARGTYPE_FORMAT: return display_format(type, proc, arg_num); @@ -134,7 +134,7 @@ display_unknown(enum tof type, struct process * proc, int arg_num) { if (tmp<1000000 && tmp>-1000000) { return fprintf(output, "%ld", tmp); } else { - return fprintf(output, "0x%08lx", tmp); + return fprintf(output, "%p", (void *)tmp); } } @@ -185,7 +185,7 @@ display_format(enum tof type, struct process * proc, int arg_num) { len += fprintf(output, ", 0%o", (int)gimme_arg(type, proc, ++arg_num)); break; } else if ((c=='x') || (c=='X')) { - len += fprintf(output, ", 0x%x", (int)gimme_arg(type, proc, ++arg_num)); + len += fprintf(output, ", %#x", (int)gimme_arg(type, proc, ++arg_num)); break; } else if (c=='c') { len += fprintf(output, ", '"); |