All of lore.kernel.org
 help / color / mirror / Atom feed
From: walter harms <wharms@bfs.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] rfc: print mac addr
Date: Tue, 06 Dec 2005 10:49:27 +0000	[thread overview]
Message-ID: <43956CB7.2060904@bfs.de> (raw)

hi list,

must (if not all) net drivers contain something like this to print a mac 
addr:

for (i = 0; i < 6; i++)
   printk("%2.2x%c", dev->dev_addr[i],i = 5 ? '\n' : ':');

I think it would be usefull to add a helper function.
simple question:
1. is there such a function ?
2. where to add ? each driver ? or is there a common place i do not know 
about ?

re,
  walter

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

             reply	other threads:[~2005-12-06 10:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-06 10:49 walter harms [this message]
2005-12-06 11:11 ` [KJ] rfc: print mac addr Paolo Teti
2005-12-06 17:03 ` Randy.Dunlap
2005-12-06 17:11 ` walter harms
2005-12-06 17:15 ` Roland Dreier
2005-12-07  1:07 ` Randy.Dunlap

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=43956CB7.2060904@bfs.de \
    --to=wharms@bfs.de \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.