lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090520043215.GA3077@chrisubuntu-laptop>
Date:	Tue, 19 May 2009 21:32:15 -0700
From:	Chris Sanford <crsanford@...il.com>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
	peterz@...radead.org
Subject: Re: [PATCH] include KERN_* constant in printk calls

On Tue, May 19 09 11:00, Ingo Molnar wrote:
> 
> * Chris Sanford <crsanford@...il.com> wrote:
> 
> > Add the KERN_CONT constant to two printk calls.
> > 
> > Signed-off-by: Chris Sanford <crsanford@...il.com>
> > 
> > ---
> > 
> > 
> > diff --git a/kernel/sched.c b/kernel/sched.c
> > index 26efa47..6a2ed16 100644
> > --- a/kernel/sched.c
> > +++ b/kernel/sched.c
> > @@ -7319,7 +7319,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
> >  	printk(KERN_DEBUG "%*s domain %d: ", level, "", level);
> >  
> >  	if (!(sd->flags & SD_LOAD_BALANCE)) {
> > -		printk("does not load-balance\n");
> > +		printk(KERN_CONT "does not load-balance\n");
> >  		if (sd->parent)
> >  			printk(KERN_ERR "ERROR: !SD_LOAD_BALANCE domain"
> >  					" has parent");
> > @@ -7340,7 +7340,7 @@ static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level,
> >  	printk(KERN_DEBUG "%*s groups:", level + 1, "");
> >  	do {
> >  		if (!group) {
> > -			printk("\n");
> > +			printk(KERN_CONT "\n");
> >  			printk(KERN_ERR "ERROR: group is NULL\n");
> >  			break;
> 
> Please use pr_cont() - and while at it, perhaps convert all other 
> printk()s in sched.c from KERN_* to the pr_*() notation as well?
> 
> Thanks,
> 
> 	Ingo
> --

The KERN_DEBUG constant is used 5 times when DEBUG is undefined. 
Doing a straight conversion from printk(KERN_DEBUG to pr_debug( will
result in no messages being printed. Should these calls have a different
message type, should DEBUG be defined, or should something else be done?
Thanks,
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ