mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 05:20:08 +01: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
This commit is contained in:
parent
7fe250f51d
commit
bfd502a9b1
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");
|
||||
|
|
|
|||
|
|
@ -456,6 +456,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