diff options
author | Steve Fink <sphink@gmail.com> | 2006-08-07 05:56:56 +0200 |
---|---|---|
committer | Ian Wienand <ianw@debian.org> | 2006-08-07 05:56:56 +0200 |
commit | 6fa27c330f9e07c5be553614b9c6e2f08461780f (patch) | |
tree | 76e6b80a916b6f14099072de5cd7fb07e33a8d68 /display_args.c | |
parent | 6a3e24dc1709530e59dd6ae3e91ced1c221fe1b9 (diff) | |
download | ltrace-6fa27c330f9e07c5be553614b9c6e2f08461780f.tar.gz |
short, ushort and float types
Diffstat (limited to 'display_args.c')
-rw-r--r-- | display_args.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/display_args.c b/display_args.c index 2a6b34f..bb0bca0 100644 --- a/display_args.c +++ b/display_args.c @@ -91,6 +91,15 @@ int display_value(enum tof type, struct process *proc, tmp += display_char(value == -1 ? value : (char) value); tmp += fprintf(output, "'"); return tmp; + case ARGTYPE_SHORT: + return fprintf(output, "%hd", (short) value); + case ARGTYPE_USHORT: + return fprintf(output, "%hu", (unsigned short) value); + case ARGTYPE_FLOAT: { + union { long l; float f; } cvt; + cvt.l = value; + return fprintf(output, "%f", cvt.f); + } case ARGTYPE_ADDR: if (!value) return fprintf(output, "NULL"); |