* [PATCH] simeth.c: use %pM to shown MAC address
@ 2009-12-28 22:24 H Hartley Sweeten
2009-12-30 17:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2009-12-28 22:24 UTC (permalink / raw)
To: linux-kernel, linux-ia64; +Cc: David Miller
Use the %pM kernel extension to display the HwAddr.
The only difference in the output is that the MAC address is
shown in the usual colon-separated hex notation instead of
space-separated.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>
---
diff --git a/arch/ia64/hp/sim/simeth.c b/arch/ia64/hp/sim/simeth.c
index 7e81966..3489b0d 100644
--- a/arch/ia64/hp/sim/simeth.c
+++ b/arch/ia64/hp/sim/simeth.c
@@ -193,7 +193,7 @@ simeth_probe1(void)
unsigned char mac_addr[ETH_ALEN];
struct simeth_local *local;
struct net_device *dev;
- int fd, i, err, rc;
+ int fd, err, rc;
/*
* XXX Fix me
@@ -236,12 +236,8 @@ simeth_probe1(void)
*/
netdev_connect(dev->irq);
- printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr",
- dev->name, simeth_device, local->simfd);
- for(i = 0; i < ETH_ALEN; i++) {
- printk(" %2.2x", dev->dev_addr[i]);
- }
- printk(", IRQ %d\n", dev->irq);
+ printk(KERN_INFO "%s: hosteth=%s simfd=%d, HwAddr %pM, IRQ %d\n",
+ dev->name, simeth_device, local->simfd, dev->dev_addr, dev->irq);
return 0;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] simeth.c: use %pM to shown MAC address
2009-12-28 22:24 [PATCH] simeth.c: use %pM to shown MAC address H Hartley Sweeten
@ 2009-12-30 17:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-12-30 17:15 UTC (permalink / raw)
To: hartleys; +Cc: linux-kernel, linux-ia64
From: "H Hartley Sweeten" <hartleys@visionengravers.com>
Date: Mon, 28 Dec 2009 17:24:38 -0500
> Use the %pM kernel extension to display the HwAddr.
>
> The only difference in the output is that the MAC address is
> shown in the usual colon-separated hex notation instead of
> space-separated.
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-30 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-28 22:24 [PATCH] simeth.c: use %pM to shown MAC address H Hartley Sweeten
2009-12-30 17:15 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).