From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Sutharshan Ramamoorthy / Prod" <srmt@cypress.com>
Cc: kernelnewbies@nl.linux.org, linux-kernel@vger.kernel.org,
odc@cypress.com
Subject: Re: printk(KERN_x...) vs dev_x()
Date: Fri, 21 Jan 2011 08:55:26 +0000 [thread overview]
Message-ID: <20110121085526.4617abae@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20110121062844.M9817@cypress.com>
> At some places in the code, there is no valid 'dev' pointer to pass to
> dev_xx() macro, at such places is it ok to use printk(KERN_XXX...)?
pr_debug() is the equivalent you want. Ideally tweak the code so the dev
pointer is available. I know that right now is a bit of a problem in a
few cases (some tty stuff for example only just acquired a usable dev
pointer)
Alan
-- Linus Torvalds
prev parent reply other threads:[~2011-01-21 8:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 6:38 Sutharshan Ramamoorthy / Prod
2011-01-21 8:55 ` Alan Cox [this message]
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=20110121085526.4617abae@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=odc@cypress.com \
--cc=srmt@cypress.com \
/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®