From 4fa2e1422db23272007b1953fb9b545e303d9716 Mon Sep 17 00:00:00 2001 From: Francesco Giudici Date: Fri, 3 Feb 2017 18:11:24 +0100 Subject: [PATCH] nmcli: (trivial) add comment --- clients/cli/devices.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 09767a7b86..e443b45ad6 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -1097,8 +1097,10 @@ show_device_info (NMDevice *device, NmCli *nmc) return FALSE; } - /* Main header */ + /* Main header (pretty only) */ nmc->print_fields.header_name = (char *) construct_header_name (base_hdr, nm_device_get_iface (device)); + + /* Lazy way to retrieve sorted array from 0 to the number of dev fields */ nmc->print_fields.indices = parse_output_fields (NMC_FIELDS_DEV_SHOW_GENERAL_ALL, nmc_fields_dev_show_general, FALSE, NULL, NULL);