diff options
author | Joe Perches <joe@perches.com> | 2007-10-03 20:59:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:51:42 -0400 |
commit | 0795af5729b18218767fab27c44b1384f72dc9ad (patch) | |
tree | 67c16df84aa6ec219340b8ea1b5cfb0e8150a216 /net/core/netpoll.c | |
parent | 95ea36275f3c9a1d3d04c217b4b576c657c4e70e (diff) |
[NET]: Introduce and use print_mac() and DECLARE_MAC_BUF()
This is nicer than the MAC_FMT stuff.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index bb7523a5b408..e13602d8154d 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -534,6 +534,7 @@ out: | |||
534 | 534 | ||
535 | void netpoll_print_options(struct netpoll *np) | 535 | void netpoll_print_options(struct netpoll *np) |
536 | { | 536 | { |
537 | DECLARE_MAC_BUF(mac); | ||
537 | printk(KERN_INFO "%s: local port %d\n", | 538 | printk(KERN_INFO "%s: local port %d\n", |
538 | np->name, np->local_port); | 539 | np->name, np->local_port); |
539 | printk(KERN_INFO "%s: local IP %d.%d.%d.%d\n", | 540 | printk(KERN_INFO "%s: local IP %d.%d.%d.%d\n", |
@@ -544,15 +545,8 @@ void netpoll_print_options(struct netpoll *np) | |||
544 | np->name, np->remote_port); | 545 | np->name, np->remote_port); |
545 | printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n", | 546 | printk(KERN_INFO "%s: remote IP %d.%d.%d.%d\n", |
546 | np->name, HIPQUAD(np->remote_ip)); | 547 | np->name, HIPQUAD(np->remote_ip)); |
547 | printk(KERN_INFO "%s: remote ethernet address " | 548 | printk(KERN_INFO "%s: remote ethernet address %s\n", |
548 | "%02x:%02x:%02x:%02x:%02x:%02x\n", | 549 | np->name, print_mac(mac, np->remote_mac)); |
549 | np->name, | ||
550 | np->remote_mac[0], | ||
551 | np->remote_mac[1], | ||
552 | np->remote_mac[2], | ||
553 | np->remote_mac[3], | ||
554 | np->remote_mac[4], | ||
555 | np->remote_mac[5]); | ||
556 | } | 550 | } |
557 | 551 | ||
558 | int netpoll_parse_options(struct netpoll *np, char *opt) | 552 | int netpoll_parse_options(struct netpoll *np, char *opt) |