mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 10:00:07 +01:00
core: silence warning about failure to read permanent MAC address (rh #907912)
Not all drivers support reporting their permanent MAC address, and some don't have one at all (no EEPROM) so it's pointless to warn about it.
This commit is contained in:
parent
1bcf3f6397
commit
ef302981b4
2 changed files with 2 additions and 2 deletions
|
|
@ -439,7 +439,7 @@ update_permanent_hw_address (NMDevice *dev)
|
|||
errno = 0;
|
||||
ret = ioctl (fd, SIOCETHTOOL, &req);
|
||||
if ((ret < 0) || !nm_ethernet_address_is_valid ((struct ether_addr *) epaddr->data)) {
|
||||
nm_log_err (LOGD_HW | LOGD_ETHER, "(%s): unable to read permanent MAC address (error %d)",
|
||||
nm_log_dbg (LOGD_HW | LOGD_ETHER, "(%s): unable to read permanent MAC address (error %d)",
|
||||
nm_device_get_iface (dev), errno);
|
||||
/* Fall back to current address */
|
||||
memcpy (epaddr->data, priv->hw_addr, ETH_ALEN);
|
||||
|
|
|
|||
|
|
@ -2855,7 +2855,7 @@ update_permanent_hw_address (NMDevice *dev)
|
|||
errno = 0;
|
||||
ret = ioctl (fd, SIOCETHTOOL, &req);
|
||||
if ((ret < 0) || !nm_ethernet_address_is_valid ((struct ether_addr *) epaddr->data)) {
|
||||
nm_log_err (LOGD_HW | LOGD_ETHER, "(%s): unable to read permanent MAC address (error %d)",
|
||||
nm_log_dbg (LOGD_HW | LOGD_ETHER, "(%s): unable to read permanent MAC address (error %d)",
|
||||
nm_device_get_iface (dev), errno);
|
||||
/* Fall back to current address */
|
||||
memcpy (epaddr->data, &priv->hw_addr, ETH_ALEN);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue