On Mon, 30 Sep 2019 11:59:02 +0200 Jiri Pirko <j...@resnulli.us> wrote:
> + open_json_array(PRINT_JSON, "altnames"); > + for (i = RTA_DATA(proplist); RTA_OK(i, rem); > + i = RTA_NEXT(i, rem)) { > + if (i->rta_type != IFLA_ALT_IFNAME) > + continue; > + print_string(PRINT_FP, "NULL", "%s altname ", _SL_); You can pass real NULL versus quoted NULL when doing print to file only