libnmc/trivial: rename _device_state_to_string() function

_device_state_externally_to_string() is a better name for what it does.
This commit is contained in:
Thomas Haller 2022-07-21 22:00:43 +02:00
parent 465df6f432
commit c8f3d50329
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -305,7 +305,7 @@ NM_UTILS_LOOKUP_STR_DEFINE(
NM_UTILS_LOOKUP_ITEM(NM_DEVICE_STATE_UNKNOWN, N_("unknown")), );
static NM_UTILS_LOOKUP_STR_DEFINE(
_device_state_to_string,
_device_state_externally_to_string,
NMDeviceState,
NM_UTILS_LOOKUP_DEFAULT(NULL),
NM_UTILS_LOOKUP_ITEM(NM_DEVICE_STATE_PREPARE, N_("connecting (externally)")),
@ -330,7 +330,7 @@ nmc_device_state_to_string_with_external(NMDevice *device)
if ((ac = nm_device_get_active_connection(device))
&& NM_FLAGS_HAS(nm_active_connection_get_state_flags(ac), NM_ACTIVATION_STATE_FLAG_EXTERNAL)
&& (s = _device_state_to_string(state)))
&& (s = _device_state_externally_to_string(state)))
return s;
return nmc_device_state_to_string(state);