From: Daniele Pizzoni <auouo@tin.it>
To: Ingo Molnar <mingo@elte.hu>
Cc: kernel-janitors <kernel-janitors@lists.osdl.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 0/8] replacing/fixing printk with pr_debug/pr_info in arch/i386 - intro
Date: Mon, 18 Oct 2004 04:41:28 +0200 [thread overview]
Message-ID: <1098067288.2892.293.camel@pdp11.tsho.org> (raw)
In-Reply-To: <20041017161953.GA24810@elte.hu>
On dom, 2004-10-17 at 18:19, Ingo Molnar wrote:
> [...]
>
> 1) be careful, there is no inconsistency here. It's a printk that doesnt
> end in a "\n" in the first line.
You're right, my fault and a big one!
Anyway I'm going to ask some questions.
DEFAULT_MESSAGE_LOGLEVEL in printk.c is the loglevel printks' without
loglevel print to. What's its use? Why should I change the loglevel of
some randomly chosen printks around the kernel only? When should I use
the defaulting printks' in my code? Isn't confusing the fact that the
call
printk("Hello!\n");
behaves differently ("log using the default loglevel" or "continue
logging from before") depending on what's happened before?
Is this a feature, a bug or am a newbie? :)
> 2) i dont like the pr_print name at all. What's wrong with Dprintk or
> dprintk? Just define them in kernel.h, this will also make your patch
> much smaller.
There's nothing wrong with Dprintk or dprintk. I simply found a request
to do so on the janitors TODO list. I found out that in kernel.h there
was really a pr_debug macro and I used it.
The rationale is that in the kernel there are lots of custom dprintk,
Dprintk, DPRINTK, etc that we need a bit of housekeeping, I think.
Anyway I didn't like pr_info either (why not a pr_notice...?) but I used
it: it was in kernel.h I assumed it was for good.
I need a bit of advice now: should I forget about printks' levels,
consistency and focus on other issues or with a bit of work these
patches may became worth of?
Bye and thanks for your replies.
--
Daniele Pizzoni <auouo@tin.it>
next prev parent reply other threads:[~2004-10-18 1:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-17 17:10 Daniele Pizzoni
2004-10-17 16:19 ` Ingo Molnar
2004-10-17 18:10 ` Geert Uytterhoeven
2004-10-17 18:23 ` Joe Perches
2004-10-17 18:34 ` Geert Uytterhoeven
2004-10-18 2:41 ` Daniele Pizzoni [this message]
2004-10-18 10:36 ` Ingo Molnar
2004-10-18 12:59 ` Daniele Pizzoni
[not found] <2QlVm-7u4-13@gated-at.bofh.it>
[not found] ` <2Qmok-7KK-1@gated-at.bofh.it>
2004-10-17 20:26 ` Andi Kleen
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=1098067288.2892.293.camel@pdp11.tsho.org \
--to=auouo@tin.it \
--cc=kernel-janitors@lists.osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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®