aboutsummaryrefslogtreecommitdiff
path: root/display_args.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2007-08-31 18:49:48 +0200
committerJuan Cespedes <cespedes@debian.org>2007-08-31 18:49:48 +0200
commitaee093126654f722523b47848a0c5449e39cf4bb (patch)
tree30c8c62185406f4aab5c907f947e0a8d5af90055 /display_args.c
parent55ed83b24df9c6d671091a8c75caab33ffecd40e (diff)
downloadltrace-aee093126654f722523b47848a0c5449e39cf4bb.tar.gz
Some random fixes
* General: Small fixes (indentation, typos, clean-up of code) * ltrace.c: Close output file on exit * ltrace.c: use getenf("HOME") instead of getpwuid(geteuid())->pw_dir * read_config_file.c, display_args.c: remove "ignore" argtype; that's what "void" is for * packaging/debian/: misc fixes, sync with version 0.5-1 * etc/ltrace.conf: added more system calls * testsuite/ltrace.minor/trace-clone.c: sleep(1) to avoid earlier termination of process * sysdeps/linux-gnu/trace.c: trace_pid(): reverted Petr's patch to wait for child to stop, as it stopped following clone() * process_event.c: Disable breakpoints before doing fork() (again!), to make children work as expected
Diffstat (limited to 'display_args.c')
-rw-r--r--display_args.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/display_args.c b/display_args.c
index 08c735a..bd050e7 100644
--- a/display_args.c
+++ b/display_args.c
@@ -176,12 +176,10 @@ int display_value(enum tof type, struct process *proc,
switch (info->type) {
case ARGTYPE_VOID:
return 0;
- case ARGTYPE_IGNORE:
- return 0; /* Empty gap between commas */
case ARGTYPE_INT:
- return fprintf(output, "%d", (int) value);
+ return fprintf(output, "%d", (int) value);
case ARGTYPE_UINT:
- return fprintf(output, "%u", (unsigned) value);
+ return fprintf(output, "%u", (unsigned) value);
case ARGTYPE_LONG:
if (proc->mask_32bit)
return fprintf(output, "%d", (int) value);