lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1401121468.519.6.camel@joe-AO725>
Date:	Mon, 26 May 2014 09:24:28 -0700
From:	Joe Perches <joe@...ches.com>
To:	Alexander Stein <alexander.stein@...tec-electronic.com>
Cc:	"David S. Miller" <davem@...emloft.net>,
	Daniel Krueger <daniel.krueger@...tec-electronic.com>,
	netdev@...r.kernel.org
Subject: Re: [PATCH 1/6] pch_gbe: print invalid MAC address during probe

On Mon, 2014-05-26 at 15:40 +0200, Alexander Stein wrote:
> show the actual offending MAC address instead of just
> rejecting it
[]
> diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c
[]
> @@ -2674,6 +2674,7 @@ static int pch_gbe_probe(struct pci_dev *pdev,
>  		 */
>  		dev_err(&pdev->dev, "Invalid MAC address, "
>  		                    "interface disabled.\n");
> +		dev_err(&pdev->dev, "%pM\n", adapter->hw.mac.addr);

Nicer I think on a single line
using just one dev_err

		dev_err(&pdev->dev, "Invalid MAC %pM - interface disabled\n",
			adapter->hw.mac.addr);


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ