diff options
| author | Jiří Klimeš <jklimes@redhat.com> | 2012-08-29 10:39:09 +0200 |
|---|---|---|
| committer | Jiří Klimeš <jklimes@redhat.com> | 2012-08-29 10:39:09 +0200 |
| commit | de763a42ecd56dcdb61a6144d4ff7cc47b049b5e (patch) | |
| tree | 97e1b750ecba91bc58fea7930b5161835ee90433 | |
| parent | 9d3fd87dd2a20faba9e73670f65126109d5b31eb (diff) | |
| download | NetworkManager-de763a42ecd56dcdb61a6144d4ff7cc47b049b5e.tar.gz | |
cli: put indexes into [] for AP and NSP in 'nmcli dev list' output
AP1 -> AP[1]
NSP1 -> NSP[1]
It's more readable (section names are AP an NSP) and it makes indexing
format conform to other data, like IP4.DNS[1].
| -rw-r--r-- | cli/src/devices.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/src/devices.c b/cli/src/devices.c index 6b9367b413..3d58679e2c 100644 --- a/cli/src/devices.c +++ b/cli/src/devices.c @@ -403,7 +403,7 @@ detail_access_point (gpointer data, gpointer user_data) if (security_str->len > 0) g_string_truncate (security_str, security_str->len-1); /* Chop off last space */ - ap_name = g_strdup_printf ("AP%d", info->index++); /* AP */ + ap_name = g_strdup_printf ("AP[%d]", info->index++); /* AP */ info->nmc->allowed_fields[0].value = ap_name; info->nmc->allowed_fields[1].value = ssid_str; info->nmc->allowed_fields[2].value = bssid; @@ -461,7 +461,7 @@ detail_wimax_nsp (NMWimaxNsp *nsp, NmCli *nmc, NMDevice *dev, int idx) } quality_str = g_strdup_printf ("%u", nm_wimax_nsp_get_signal_quality (nsp)); - nsp_name = g_strdup_printf ("NSP%d", idx); /* NSP */ + nsp_name = g_strdup_printf ("NSP[%d]", idx); /* NSP */ nmc->allowed_fields[0].value = nsp_name; nmc->allowed_fields[1].value = nm_wimax_nsp_get_name (nsp); |
