diff options
author | Juan Cespedes <cespedes@debian.org> | 2009-04-07 15:33:50 +0200 |
---|---|---|
committer | Juan Cespedes <cespedes@debian.org> | 2009-04-07 15:33:50 +0200 |
commit | da9b953284966b8c52de43713ebb5b503756e468 (patch) | |
tree | 9ccf507c40ff259bd43f3e7dce0857c65f9cf4e7 /display_args.c | |
parent | 375ef8e667be88645f6af6bb099f04471c7f53cd (diff) | |
download | ltrace-da9b953284966b8c52de43713ebb5b503756e468.tar.gz |
More fields to struct "options"
(opt_c, opt_d, opt_A)
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 6ffb859..aade610 100644 --- a/display_args.c +++ b/display_args.c @@ -73,12 +73,12 @@ display_arrayptr(enum tof type, struct process *proc, array_len = get_length(type, proc, info->u.array_info.len_spec, st, st_info); len += fprintf(options.output, "[ "); - for (i = 0; i < opt_A && i < array_maxlength && i < array_len; i++) { + for (i = 0; i < options.arraylen && i < array_maxlength && i < array_len; i++) { arg_type_info *elt_type = info->u.array_info.elt_type; size_t elt_size = info->u.array_info.elt_size; if (i != 0) len += fprintf(options.output, ", "); - if (opt_d) + if (options.debug) len += fprintf(options.output, "%p=", addr); len += display_ptrto(type, proc, (long) addr, elt_type, st, st_info); @@ -107,7 +107,7 @@ display_structptr(enum tof type, struct process *proc, for (i = 0; (field = info->u.struct_info.fields[i]) != NULL; i++) { if (i != 0) len += fprintf(options.output, ", "); - if (opt_d) + if (options.debug) len += fprintf(options.output, "%p=", addr + info->u.struct_info.offset[i]); |