public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik•org>
To: David Miller <davem@davemloft•net>
Cc: shemminger@linux-foundation•org, netdev@vger•kernel.org,
	Ariel.Hendel@sun•com, greg.onufer@sun•com,
	Ashley.Saulsbury@sun•com, Matheos.Worku@sun•com
Subject: Re: [PATCH]: Third (final?) release of Sun Neptune driver
Date: Fri, 05 Oct 2007 19:31:39 -0400	[thread overview]
Message-ID: <4706C95B.6080808@garzik.org> (raw)
In-Reply-To: <20071005.155448.64007750.davem@davemloft.net>

David Miller wrote:
> From: Stephen Hemminger <shemminger@linux-foundation•org>
> Date: Fri, 5 Oct 2007 08:35:56 -0700
> 
>> pr_info() ?
> 
> All corrected, thanks!
> 
>>From 11aaa8adc8e9141a440faaa3260ad5922c71eeda Mon Sep 17 00:00:00 2001
> From: David S. Miller <davem@sunset•davemloft.net>
> Date: Fri, 5 Oct 2007 15:53:21 -0700
> Subject: [PATCH] [NIU]: Use pr_info().
> 
> Suggested by Stephen Hemminger.
> 
> Signed-off-by: David S. Miller <davem@davemloft•net>
> ---
>  drivers/net/niu.c |   78 ++++++++++++++++++++++++++--------------------------
>  1 files changed, 39 insertions(+), 39 deletions(-)

ACK

however long term, I would tend to prefer that we utilize the embedded 
struct device we have, which seems to be the way things are moving long 
term.

	struct net_device *ndev = ...;
	struct nic_private *np = netdev_priv(ndev);

	dev_printk(KERN_INFO, &ndev->dev,
		   "we all live in a %s submarine, "
		   "a %s submarine\n",
		   np->color ? "yellow" : "silly");

I say "long term" because we want netdev->dev.bus_id to match the 
net_device->name[], and it may not at this point (needs 
research/verification).


[as an aside...]  If the message isn't directly related to a net_device, 
you should go ahead and use

	struct pci_dev *pdev = ...;

	dev_printk(KERN_INFO, &pdev->dev, "my message...");

because that stuff is reasonably mature (and seemingly the preferred 
direction).

	Jeff



  reply	other threads:[~2007-10-05 23:31 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 10:12 [PATCH]: Third (final?) release of Sun Neptune driver David Miller
2007-10-05 15:35 ` Stephen Hemminger
2007-10-05 22:49   ` David Miller
2007-10-05 22:54   ` David Miller
2007-10-05 23:31     ` Jeff Garzik [this message]
2007-10-05 22:56   ` David Miller
2007-10-05 23:07   ` David Miller
2007-10-05 23:24   ` David Miller
2007-10-05 23:32     ` Jeff Garzik
2007-10-05 23:27   ` David Miller
2007-10-05 15:39 ` Stephen Hemminger
2007-10-05 21:12   ` David Miller
2007-10-05 21:18     ` Stephen Hemminger
2007-10-05 23:30       ` David Miller
2007-10-05 15:40 ` Stephen Hemminger
2007-10-05 21:12   ` David Miller
2007-10-05 21:14     ` Jeff Garzik
2007-10-05 21:21       ` Stephen Hemminger
2007-10-05 21:40         ` David Miller
2007-10-05 21:38       ` David Miller
2007-10-05 23:42   ` David Miller
2007-10-05 15:43 ` Stephen Hemminger
2007-10-06  0:04   ` David Miller
2007-10-06  0:28     ` Stephen Hemminger
2007-10-06  0:46       ` David Miller
2007-10-06  8:32       ` Johannes Berg
2007-10-05 16:46 ` Ingo Oeser
2007-10-05 16:49   ` Ingo Oeser
2007-10-06  0:08     ` David Miller
2007-10-08 16:04       ` Oliver Hartkopp
2007-10-05 16:55   ` Jeff Garzik
2007-10-05 17:45   ` Matheos Worku
2007-10-05 21:18   ` David Miller
2007-10-05 21:20   ` David Miller
     [not found]   ` <470677A0.5060502@sun.com>
2007-10-05 21:24     ` David Miller
2007-10-05 22:18   ` Matheos Worku
2007-10-05 22:43     ` David Miller
2007-10-06  0:10   ` David Miller
2007-10-08 16:01 ` Oliver Hartkopp
2007-10-08 23:08   ` 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=4706C95B.6080808@garzik.org \
    --to=jeff@garzik$(echo .)org \
    --cc=Ariel.Hendel@sun$(echo .)com \
    --cc=Ashley.Saulsbury@sun$(echo .)com \
    --cc=Matheos.Worku@sun$(echo .)com \
    --cc=davem@davemloft$(echo .)net \
    --cc=greg.onufer@sun$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=shemminger@linux-foundation$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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