Skip to content

Commit

Permalink
fix: simplify JSON output formatting in aw-bpfctl
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Feb 7, 2025
1 parent 0bb9865 commit 301a3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebpf/aw-bpfctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ main(int argc, char **argv) {
json_object_object_add(jroot, "type", json_object_new_string(map_type));
json_object_object_add(jroot, "data", jdata);

printf("%s\n", json_object_to_json_string_ext(jroot, JSON_C_TO_STRING_PRETTY));
printf("%s\n", json_object_to_json_string(jroot));
json_object_put(jroot);
} else if (strcmp(cmd, "del") == 0) {
if (argc != 4) {
Expand Down

0 comments on commit 301a3c1

Please sign in to comment.