login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
8
Re: [RFC][PATCH] New message-logging API (kprint)
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Stephen Hemminger <shemminger@...>
To: Vegard Nossum <vegard.nossum@...>
Cc: Rob Landley <rob@...>, Miguel Ojeda <maxextreme@...>, Randy Dunlap <randy.dunlap@...>, LKML <linux-kernel@...>, Kyle Moffett <mrmacman_g4@...>, Michael Holzheu <holzheu@...>, Joe Perches <joe@...>, Dick Streefland <dick.streefland@...>, Geert Uytterhoeven <Geert.Uytterhoeven@...>, Jesse Barnes <jesse.barnes@...>, Arnd Bergmann <arnd@...>, Jan Engelhardt <jengelh@...>, Emil Medve <Emilian.Medve@...>, linux@horizon.com <linux@...>
Subject:
Re: [RFC][PATCH] New message-logging API (kprint)
Date: Monday, October 8, 2007 - 11:42 am
On Mon, 8 Oct 2007 17:33:53 +0200 "Vegard Nossum" <vegard.nossum@gmail.com> wrote:
quoted text
> On 10/8/07, Stephen Hemminger <shemminger@linux-foundation.org> wrote: > > On Sun, 7 Oct 2007 16:50:49 -0500 > > Rob Landley <rob@landley.net> wrote: > > > > > On Saturday 06 October 2007 1:10:26 am Vegard Nossum wrote: > > > > On 10/5/07, Rob Landley <rob@landley.net> wrote: > > > I made it about halfway through the patch and the only compile time filtering > > > I found was: > > > > > > --- a/drivers/md/md.c > > > +++ b/drivers/md/md.c > > > @@ -62,7 +62,10 @@ > > > #define MdpMinorShift 6 > > > > > > #define DEBUG 0 > > > -#define dprintk(x...) ((void)(DEBUG && printk(x))) > > > +#define dprintk(x...)\ > > > +if(DEBUG) {\ > > > + printk(x);\ > > > +} > > > > > > If you say it does, I'll take your word for it, but there's so much churn in > > > there I didn't find it before my interest ran out... > > > > > > > BTW that change might actually break code (dangling else problems). > > The original way was safer. > > Yep, thanks. I think containing it in do {} while(0) should fix, though, no? > > Vegard
The correct fix is to just replace dprintk() with pr_debug() -- Stephen Hemminger <shemminger@linux-foundation.org> -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[RFC][PATCH] New message-logging API (kprint)
, Vegard Nossum
, (Thu Oct 4, 4:04 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Randy Dunlap
, (Thu Oct 4, 4:17 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Rob Landley
, (Thu Oct 4, 9:59 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Vegard Nossum
, (Fri Oct 5, 9:13 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Rob Landley
, (Fri Oct 5, 12:05 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Alan Cox
, (Fri Oct 5, 1:01 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Miguel Ojeda
, (Fri Oct 5, 3:01 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Rob Landley
, (Fri Oct 5, 12:26 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Vegard Nossum
, (Sat Oct 6, 2:10 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Rob Landley
, (Sun Oct 7, 5:50 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Stephen Hemminger
, (Mon Oct 8, 11:25 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Vegard Nossum
, (Mon Oct 8, 11:33 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Stephen Hemminger
, (Mon Oct 8, 11:42 am)
Re: [RFC][PATCH] New message-logging API (kprint)
, Miguel Ojeda
, (Fri Oct 5, 7:01 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Rob Landley
, (Sun Oct 7, 5:56 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Randy Dunlap
, (Sun Oct 7, 6:32 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Stephen Hemminger
, (Fri Oct 5, 8:34 pm)
Re: [RFC][PATCH] New message-logging API (kprint)
, Miguel Ojeda
, (Sun Oct 7, 6:20 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
H. Peter Anvin
Re: [rft] s2ram wakeup moves to .c, could fix few machines
Greg Kroah-Hartman
[PATCH 002/196] Chinese: rephrase English introduction in HOWTO
Ingo Molnar
[patch] PID namespace design bug, workaround
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
git
:
linux-netdev
:
Eric Dumazet
Re: Multicast packet loss
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
12 users
and
796 guests
online.
Online users
marblecleaning
zeekec
successfuldrlg
nscalemodeltra
dfarrell356
seosoftwarertzd
aheins678
taximlihlh
lc09isg
mainetravelxzmy
cordic
hotrolledsteel
Syndicate