mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 03:00:13 +01:00
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].
This commit is contained in:
parent
9d3fd87dd2
commit
de763a42ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue