netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
To: liujunliang_ljl-9Onoh4P/yGk@public.gmane.org
Cc: davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org,
	horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org,
	romieu-W8zweXLXuWQS+FvcfC7Uqw@public.gmane.org,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org,
	netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	sunhecheng-i49A8sVr+H5BDgjK7y7TUQ@public.gmane.org
Subject: Re: [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device Driver Support
Date: Sun, 09 Feb 2014 21:47:01 -0800	[thread overview]
Message-ID: <1392011221.3178.18.camel@joe-AO722> (raw)
In-Reply-To: <1392010419-5217-1-git-send-email-liujunliang_ljl-9Onoh4P/yGk@public.gmane.org>

On Mon, 2014-02-10 at 13:33 +0800, liujunliang_ljl-9Onoh4P/yGk@public.gmane.org wrote:
> diff --git a/drivers/net/usb/sr9800.c b/drivers/net/usb/sr9800.c
[]
> +	netdev_dbg(dev->net, "mac addr : 0x%x:0x%x:0x%x:0x%x:0x%x:0x%x\n",
> +		   dev->net->dev_addr[0], dev->net->dev_addr[1],
> +		   dev->net->dev_addr[2], dev->net->dev_addr[3],
> +		   dev->net->dev_addr[4], dev->net->dev_addr[5]);

mac addresses are assumed to be hex and don't need 0x prefixes.
Also, there's a kernel vsprintf extension "%pM" for mac addresses.

	netdev_dbg(dev->net, "mac addr: %pM\n", dev->net->dev_addr);


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

  parent reply	other threads:[~2014-02-10  5:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-10  5:33 [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device Driver Support liujunliang_ljl
     [not found] ` <1392010419-5217-1-git-send-email-liujunliang_ljl-9Onoh4P/yGk@public.gmane.org>
2014-02-10  5:47   ` Joe Perches [this message]
2014-02-10  6:32     ` Re: [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800Device " liujunliang_ljl
2014-02-12 10:12 ` [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device " Thierry Reding
2014-02-13  4:23 ` Re: [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 DeviceDriver Support liujunliang_ljl
  -- strict thread matches above, loose matches on Subject: below --
2014-02-10  6:31 [PATCH] USB2NET : SR9800 : One chip USB2.0 USB2NET SR9800 Device Driver Support liujunliang_ljl
2014-02-11  0:53 ` David Miller
2014-02-07  6:42 liujunliang_ljl
2014-02-10  2:08 ` David Miller
2014-02-10  2:58 ` Joe Perches
2014-01-28  8:36 liujunliang_ljl
2014-01-28  8:59 ` Joe Perches

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=1392011221.3178.18.camel@joe-AO722 \
    --to=joe-6d6dil74uinbdgjk7y7tuq@public.gmane.org \
    --cc=davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org \
    --cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
    --cc=horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=liujunliang_ljl-9Onoh4P/yGk@public.gmane.org \
    --cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=romieu-W8zweXLXuWQS+FvcfC7Uqw@public.gmane.org \
    --cc=sunhecheng-i49A8sVr+H5BDgjK7y7TUQ@public.gmane.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;
as well as URLs for NNTP newsgroup(s).