mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 10:08:38 +02:00
core/cli: add missing device state-reason to string conversions
for NM_DEVICE_STATE_REASON_PARENT_CHANGED and NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED Fixes:cd3df12c8f(cherry picked from commitbfd502a9b1)
This commit is contained in:
parent
8366b9f60d
commit
0380c53c39
2 changed files with 8 additions and 0 deletions
|
|
@ -708,6 +708,12 @@ nmc_device_reason_to_string (NMDeviceStateReason reason)
|
|||
case NM_DEVICE_STATE_REASON_NEW_ACTIVATION:
|
||||
return _("New connection activation was enqueued");
|
||||
|
||||
case NM_DEVICE_STATE_REASON_PARENT_CHANGED:
|
||||
return _("The device's parent changed");
|
||||
|
||||
case NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED:
|
||||
return _("The device parent's management changed");
|
||||
|
||||
default:
|
||||
/* TRANSLATORS: Unknown reason for a device state change (NMDeviceStateReason) */
|
||||
return _("Unknown");
|
||||
|
|
|
|||
|
|
@ -454,6 +454,8 @@ static const char *reason_table[] = {
|
|||
[NM_DEVICE_STATE_REASON_MODEM_AVAILABLE] = "modem-available",
|
||||
[NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT] = "sim-pin-incorrect",
|
||||
[NM_DEVICE_STATE_REASON_NEW_ACTIVATION] = "new-activation",
|
||||
[NM_DEVICE_STATE_REASON_PARENT_CHANGED] = "parent-changed",
|
||||
[NM_DEVICE_STATE_REASON_PARENT_MANAGED_CHANGED] = "parent-managed-changed",
|
||||
};
|
||||
|
||||
static const char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue