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] [day] [month] [year] [list]
Message-Id: <20140502195200.738e69ae99279e649a93b6bc@skynet.be>
Date:	Fri, 2 May 2014 19:52:00 +0200
From:	Fabian Frederick <fabf@...net.be>
To:	Jens Axboe <axboe@...nel.dk>
Cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	akpm <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/1] block/blk-core.c: convert printk to pr_foo()

On Fri, 02 May 2014 11:39:44 -0600
Jens Axboe <axboe@...nel.dk> wrote:

> On 05/02/2014 10:49 AM, Fabian Frederick wrote:
> > -Convert all printk,print_ratelimited ...
> > -Define debug to have pr_debug emitted
> > -Fix checkpatch warning: Lu->llu
> > 
> > Cc: Jens Axboe <axboe@...nel.dk>
> > Cc: Andrew Morton <akpm@...ux-foundation.org>
> > Signed-off-by: Fabian Frederick <fabf@...net.be>
> > ---
> >  block/blk-core.c | 60 +++++++++++++++++++++++++++-----------------------------
> >  1 file changed, 29 insertions(+), 31 deletions(-)
> > 
> > diff --git a/block/blk-core.c b/block/blk-core.c
> > index a0e3096..5c544fa 100644
> > --- a/block/blk-core.c
> > +++ b/block/blk-core.c
> > @@ -11,6 +11,7 @@
> >  /*
> >   * This handles all read/write requests to block devices
> >   */
> > +#define DEBUG
> >  #include <linux/kernel.h>
> >  #include <linux/module.h>
> >  #include <linux/backing-dev.h>
> 
> That's a mess.

Other solutions are 
1) Leave the only printk(KERN_DEBUG as it is.
2) Add BLK-CORE-DEBUG in Kconfig


--
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