diff options
author | Francesco Giudici <fgiudici@redhat.com> | 2017-02-03 18:11:24 +0100 |
---|---|---|
committer | Francesco Giudici <fgiudici@redhat.com> | 2017-03-28 10:55:00 +0200 |
commit | 4fa2e1422db23272007b1953fb9b545e303d9716 (patch) | |
tree | dcb06de9cf6e2a2035554be4ec3d2c6b8d561ede | |
parent | 7b589a0aef3f04a99946bf531dff37cbc1deb326 (diff) | |
download | NetworkManager-4fa2e1422db23272007b1953fb9b545e303d9716.tar.gz |
nmcli: (trivial) add comment
-rw-r--r-- | clients/cli/devices.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |