device: reword logging line about device's state change

The line

    device (wlan0): state change: ip-config -> ip-check (reason none, internal state managed)

prints the sys-iface-state, which is at other places logged with

    device[0x55914506ed70] (wlan0): sys-iface-state: external -> managed

For consistency, name the same parameter the same.
This commit is contained in:
Thomas Haller 2017-10-06 11:45:38 +02:00
parent 3a81e20d76
commit 71b5cc3682

View file

@ -12796,7 +12796,7 @@ _set_state_full (NMDevice *self,
if ( (priv->state == state)
&& ( state != NM_DEVICE_STATE_UNAVAILABLE
|| !priv->firmware_missing)) {
_LOGD (LOGD_DEVICE, "state change: %s -> %s (reason '%s', internal state '%s'%s)",
_LOGD (LOGD_DEVICE, "state change: %s -> %s (reason '%s', sys-iface-state: '%s'%s)",
nm_device_state_to_str (old_state),
nm_device_state_to_str (state),
reason_to_string (reason),
@ -12805,7 +12805,7 @@ _set_state_full (NMDevice *self,
return;
}
_LOGI (LOGD_DEVICE, "state change: %s -> %s (reason '%s', internal state '%s')",
_LOGI (LOGD_DEVICE, "state change: %s -> %s (reason '%s', sys-iface-state: '%s')",
nm_device_state_to_str (old_state),
nm_device_state_to_str (state),
reason_to_string (reason),