Skip to content

Commit

Permalink
Add missing commas in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
stanek-michal committed May 22, 2024
1 parent 57ac1d2 commit 5edf8d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions non-GPL/Events/EventsTrace/EventsTrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,7 @@ static void out_process_fork(struct ebpf_process_fork_event *evt)
out_comma();

out_string("comm", evt->comm);
out_comma();

struct ebpf_varlen_field *field;
FOR_EACH_VARLEN_FIELD(evt->vl_fields, field)
Expand Down Expand Up @@ -788,6 +789,7 @@ static void out_process_exec(struct ebpf_process_exec_event *evt)
out_comma();

out_string("comm", evt->comm);
out_comma();

out_bool("is_setuid", evt->is_setuid);
out_comma();
Expand Down Expand Up @@ -885,6 +887,7 @@ static void out_process_tty_write(struct ebpf_process_tty_write_event *evt)
out_tty_dev("tty", &evt->tty);
out_comma();
out_string("comm", (const char *)&evt->comm);
out_comma();

struct ebpf_varlen_field *field;
FOR_EACH_VARLEN_FIELD(evt->vl_fields, field)
Expand Down Expand Up @@ -1026,6 +1029,7 @@ static void out_network_event(const char *name, struct ebpf_net_event *evt)
out_comma();

out_string("comm", (const char *)&evt->comm);
out_comma();

out_object_end();
out_newline();
Expand Down

0 comments on commit 5edf8d5

Please sign in to comment.