From: Simon Horman <horms@verge.net.au>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: [PATCH] drivers/net/skfp/skfddi.c: use %pMF to show MAC address
Date: Fri, 8 Jan 2010 11:02:24 +1100 [thread overview]
Message-ID: <20100108000224.GH2436@verge.net.au> (raw)
In-Reply-To: <201001071627.46569.hartleys@visionengravers.com>
On Thu, Jan 07, 2010 at 04:27:46PM -0700, H Hartley Sweeten wrote:
> Use the %pMF kernel extension to display the MAC address.
>
> The address will still be displayed in the FDDI Canonical format.
I'm not sure that it matters, but prior to this patch
the address was displayed with octets delimited by spaces,
and afterwards its delimited by hyphens. So perhaps the comment
should read:
The address will now be displayed in the FDDI Canonical format.
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: David S. Miller <davem@davemloft.net>
>
> ---
>
> diff --git a/drivers/net/skfp/skfddi.c b/drivers/net/skfp/skfddi.c
> index db216a7..1f9698c 100644
> --- a/drivers/net/skfp/skfddi.c
> +++ b/drivers/net/skfp/skfddi.c
> @@ -435,13 +435,7 @@ static int skfp_driver_init(struct net_device *dev)
> goto fail;
> }
> read_address(smc, NULL);
> - pr_debug(KERN_INFO "HW-Addr: %02x %02x %02x %02x %02x %02x\n",
> - smc->hw.fddi_canon_addr.a[0],
> - smc->hw.fddi_canon_addr.a[1],
> - smc->hw.fddi_canon_addr.a[2],
> - smc->hw.fddi_canon_addr.a[3],
> - smc->hw.fddi_canon_addr.a[4],
> - smc->hw.fddi_canon_addr.a[5]);
> + pr_debug(KERN_INFO "HW-Addr: %pMF\n", smc->hw.fddi_canon_addr.a);
> memcpy(dev->dev_addr, smc->hw.fddi_canon_addr.a, 6);
>
> smt_reset_defaults(smc, 0);
> @@ -890,15 +884,8 @@ static void skfp_ctl_set_multicast_list_wo_lock(struct net_device *dev)
> (struct fddi_addr *)dmi->dmi_addr,
> 1);
>
> - pr_debug(KERN_INFO "ENABLE MC ADDRESS:");
> - pr_debug(" %02x %02x %02x ",
> - dmi->dmi_addr[0],
> - dmi->dmi_addr[1],
> - dmi->dmi_addr[2]);
> - pr_debug("%02x %02x %02x\n",
> - dmi->dmi_addr[3],
> - dmi->dmi_addr[4],
> - dmi->dmi_addr[5]);
> + pr_debug(KERN_INFO "ENABLE MC ADDRESS: %pMF\n",
> + dmi->dmi_addr);
> dmi = dmi->next;
> } // for
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-01-08 0:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 23:27 H Hartley Sweeten
2010-01-08 0:02 ` Simon Horman [this message]
2010-01-08 1:43 ` Joe Perches
2010-01-08 2:52 ` Simon Horman
2010-01-08 14:57 ` Michał Mirosław
2010-01-08 0:59 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100108000224.GH2436@verge.net.au \
--to=horms@verge.net.au \
--cc=davem@davemloft.net \
--cc=hartleys@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®