summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-07-21 22:00:43 +0200
committerThomas Haller <thaller@redhat.com>2022-07-21 22:03:33 +0200
commitc8f3d5032910b4a57096b7dba34d66524f339f15 (patch)
treee62a8f2e8fb4370bd4d2fb3fb3322bde92b424e8
parent465df6f432aa37422dbcce569ff7db3e6ec7d3e8 (diff)
downloadNetworkManager-c8f3d5032910b4a57096b7dba34d66524f339f15.tar.gz
libnmc/trivial: rename _device_state_to_string() function
_device_state_externally_to_string() is a better name for what it does.
-rw-r--r--src/libnmc-base/nm-client-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnmc-base/nm-client-utils.c b/src/libnmc-base/nm-client-utils.c
index e2ed7fc287..4ce1ac6c88 100644
--- a/src/libnmc-base/nm-client-utils.c
+++ b/src/libnmc-base/nm-client-utils.c
@@ -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);