summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-04-03 08:28:53 -0400
committerLubomir Rintel <lkundrak@v3.sk>2015-04-14 17:04:31 +0200
commit5eec0818a1aae3ba1541179925946986d972dc1e (patch)
tree57d0ebe52a339708af2b65a2d4575710556d29ef
parent7f7c8acbaed65722bad16ebb9d710b5e4097895e (diff)
downloadNetworkManager-5eec0818a1aae3ba1541179925946986d972dc1e.tar.gz
device: translate NM_DEVICE_STATE_REASON_UNKNOWN to "unknown"
(cherry picked from commit c1c3d7e145ab2ea65c5474817bcb20b58f434ecb)
-rw-r--r--src/devices/nm-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index b320748f23..d41a21eb76 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -387,6 +387,7 @@ state_to_string (NMDeviceState state)
}
static const char *reason_table[] = {
+ [NM_DEVICE_STATE_REASON_UNKNOWN] = "unknown",
[NM_DEVICE_STATE_REASON_NONE] = "none",
[NM_DEVICE_STATE_REASON_NOW_MANAGED] = "managed",
[NM_DEVICE_STATE_REASON_NOW_UNMANAGED] = "unmanaged",