Skip to content

Commit

Permalink
comma separate args in table
Browse files Browse the repository at this point in the history
  • Loading branch information
itaysk committed Aug 5, 2020
1 parent 9983e23 commit 3fdcbbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tracee/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,11 @@ func (p tableEventPrinter) Print(event Event) {
fmt.Fprintf(p.out, "%-14f %-6d %-16s %-7d %-7d% -16d %-20s ", event.Timestamp, event.UserID, event.ProcessName, event.ProcessID, event.ThreadID, event.ReturnValue, event.EventName)
}
}
for _, arg := range event.Args {
fmt.Fprintf(p.out, "%s: %v ", arg.Name, arg.Value)
for i, arg := range event.Args {
if i == 0 {
fmt.Fprintf(p.out, "%s: %v", arg.Name, arg.Value)
}
fmt.Fprintf(p.out, ", %s: %v", arg.Name, arg.Value)
}
fmt.Fprintln(p.out)
}
Expand Down

0 comments on commit 3fdcbbb

Please sign in to comment.