eBPF-based security platform
upatch: render the map text in a statement of its own
Daniel Borkmannd97df4f4dfbf
diff --git a/builtin-upatch.c b/builtin-upatch.cindex 8dc481c3..1912cf02 100644--- a/builtin-upatch.c+++ b/builtin-upatch.c@@ -3776,10 +3776,12 @@ static int cmd_upatch_get(int argc, const char **argv)upatch_maps_list_one(want, &maps, &nm);map_cap = show_full ? 0 : MAP_ENTRIES_DEFAULT;- if (json)+ if (json) {ret = render_get_json(&ctx, maps, nm, map_cap);- else- render_get_text(&ctx, maps, nm, map_cap), ret = 0;+ } else {+ render_get_text(&ctx, maps, nm, map_cap);+ ret = 0;+ }map_summary_free(maps, nm);upatch_get_ctx_free(&ctx);