Thread (12 messages) flat view 12 messages, 4 authors, 2016-02-11

Re: [PATCH 5/6] net: thunderx: bgx: Add log message when setting mac address

From: Robert Richter <hidden>
Date: 2016-02-08 13:48:55
Also in: linux-arm-kernel, lkml

On 08.02.16 16:30:37, Sergei Shtylyov wrote:
quoted
@@ -897,10 +898,13 @@ static int acpi_get_mac_address(struct acpi_device *adev, u8 *dst)
 		goto out;

 	if (!is_valid_ether_addr(mac)) {
+		dev_warn(dev, "MAC address invalid: %pM\n", mac);
   dev_er(), maybe?
Since the driver may continue, my choice was a warning only.

-Robert
quoted
 		ret = -EINVAL;
 		goto out;
 	}

+	dev_info(dev, "MAC address set to: %pM\n", mac);
+
 	memcpy(dst, mac, ETH_ALEN);
 out:
 	return ret;
[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help