From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751745AbaE1ELJ (ORCPT ); Wed, 28 May 2014 00:11:09 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57671 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbaE1ELI (ORCPT ); Wed, 28 May 2014 00:11:08 -0400 X-Originating-IP: 50.43.32.211 Date: Tue, 27 May 2014 21:10:58 -0700 From: Josh Triplett To: Fabian Frederick Cc: linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH 1/4] lib/debugobjects.c: convert printk to pr_foo() Message-ID: <20140528041058.GA20758@thin> References: <1400936768-24897-1-git-send-email-fabf@skynet.be> <20140524215322.GA24038@thin> <20140525051836.116fe09126f16de8b3955d27@skynet.be> <20140525034043.GA26647@thin> <20140527162554.c0e15156130eedf712934eea@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140527162554.c0e15156130eedf712934eea@skynet.be> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 27, 2014 at 04:25:54PM +0200, Fabian Frederick wrote: > On Sat, 24 May 2014 20:40:43 -0700 > Josh Triplett wrote: > > > On Sun, May 25, 2014 at 05:18:36AM +0200, Fabian Frederick wrote: > > > On Sat, 24 May 2014 14:53:22 -0700 > > > Josh Triplett wrote: > > > > > > > On Sat, May 24, 2014 at 03:06:08PM +0200, Fabian Frederick wrote: > > > > > Convert all except KERN_DEBUG > > > > > > > > Why not KERN_DEBUG? > > > printk(KERN_DEBUG can't be converted to pr_debug the same way as other printk. > > > > True, but I don't see any obvious reason why that prevents you from > > converting them. More importantly, though, you should explain for the > > benefit of the changelog. > > There's no documentation yet in mainline for this but in linux-next: > commit 8ce2658fc31bb7 > > I can submit one more patch with pr_debug conversion using #define DEBUG > or compilation -DDEBUG Definitely keep it as a separate patch, but I don't think you should define DEBUG by default; just let people turn it on if desired, and leave it out otherwise. There's only a single KERN_DEBUG printk in this driver, and it seems fine to just convert to pr_debug so it gets left out of normal builds. - Josh Triplett