diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 1fe6f064da..2218ce8297 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -582,7 +582,7 @@ nm_device_state_to_str (NMDeviceState state) return queued_state_to_string (state) + NM_STRLEN (NM_PENDING_ACTIONPREFIX_QUEUED_STATE_CHANGE); } -NM_UTILS_LOOKUP_STR_DEFINE_STATIC (_reason_to_string, NMDeviceStateReason, +NM_UTILS_LOOKUP_STR_DEFINE (nm_device_state_reason_to_str, NMDeviceStateReason, NM_UTILS_LOOKUP_DEFAULT (NULL), NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_UNKNOWN, "unknown"), NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_NONE, "none"), @@ -652,7 +652,7 @@ NM_UTILS_LOOKUP_STR_DEFINE_STATIC (_reason_to_string, NMDeviceStateReason, ); #define reason_to_string(reason) \ - NM_UTILS_LOOKUP_STR (_reason_to_string, reason) + NM_UTILS_LOOKUP_STR (nm_device_state_reason_to_str, reason) /*****************************************************************************/ diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h index b0d299e4ea..810a613dde 100644 --- a/src/devices/nm-device.h +++ b/src/devices/nm-device.h @@ -794,5 +794,6 @@ struct _NMBtVTableNetworkServer { }; const char *nm_device_state_to_str (NMDeviceState state); +const char *nm_device_state_reason_to_str (NMDeviceStateReason reason); #endif /* __NETWORKMANAGER_DEVICE_H__ */