[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56B8987D.7000901@cogentembedded.com>
Date: Mon, 8 Feb 2016 16:30:37 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: sunil.kovvuri@...il.com, netdev@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
sgoutham@...ium.com, robert.richter@...iumnetworks.com,
Robert Richter <rrichter@...ium.com>
Subject: Re: [PATCH 5/6] net: thunderx: bgx: Add log message when setting mac
address
Hello.
On 2/8/2016 3:07 PM, sunil.kovvuri@...il.com wrote:
> From: Robert Richter <rrichter@...ium.com>
>
> Signed-off-by: Robert Richter <rrichter@...ium.com>
> Signed-off-by: Sunil Goutham <sgoutham@...ium.com>
> ---
> drivers/net/ethernet/cavium/thunder/thunder_bgx.c | 11 ++++++++---
> 1 files changed, 8 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
> index 111835b..cfee496 100644
> --- a/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
> +++ b/drivers/net/ethernet/cavium/thunder/thunder_bgx.c
[...]
> @@ -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?
> ret = -EINVAL;
> goto out;
> }
>
> + dev_info(dev, "MAC address set to: %pM\n", mac);
> +
> memcpy(dst, mac, ETH_ALEN);
> out:
> return ret;
[...]
MBR, Sergei
Powered by blists - more mailing lists