device: don't log connection UUIDs on device creation
It's irrelevant, doesn't look good, and might possibly be not there because the connection has not been normalized yet.
This commit is contained in:
@@ -183,9 +183,8 @@ create_and_realize(NMDevice *device,
|
|||||||
g_set_error(error,
|
g_set_error(error,
|
||||||
NM_DEVICE_ERROR,
|
NM_DEVICE_ERROR,
|
||||||
NM_DEVICE_ERROR_FAILED,
|
NM_DEVICE_ERROR_FAILED,
|
||||||
"unsupported IPVLAN mode %u in connection %s",
|
"unsupported IPVLAN mode %u",
|
||||||
nm_setting_ipvlan_get_mode(s_ipvlan),
|
nm_setting_ipvlan_get_mode(s_ipvlan));
|
||||||
nm_connection_get_uuid(connection));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
lnk.mode = setting_mode_to_platform(nm_setting_ipvlan_get_mode(s_ipvlan));
|
lnk.mode = setting_mode_to_platform(nm_setting_ipvlan_get_mode(s_ipvlan));
|
||||||
|
@@ -232,9 +232,8 @@ create_and_realize(NMDevice *device,
|
|||||||
g_set_error(error,
|
g_set_error(error,
|
||||||
NM_DEVICE_ERROR,
|
NM_DEVICE_ERROR,
|
||||||
NM_DEVICE_ERROR_FAILED,
|
NM_DEVICE_ERROR_FAILED,
|
||||||
"unsupported MACVLAN mode %u in connection %s",
|
"unsupported MACVLAN mode %u",
|
||||||
nm_setting_macvlan_get_mode(s_macvlan),
|
nm_setting_macvlan_get_mode(s_macvlan));
|
||||||
nm_connection_get_uuid(connection));
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
lnk.no_promisc = !nm_setting_macvlan_get_promiscuous(s_macvlan);
|
lnk.no_promisc = !nm_setting_macvlan_get_promiscuous(s_macvlan);
|
||||||
|
Reference in New Issue
Block a user