Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759940AbYLCUgW (ORCPT ); Wed, 3 Dec 2008 15:36:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758695AbYLCUMp (ORCPT ); Wed, 3 Dec 2008 15:12:45 -0500 Received: from mx2.redhat.com ([66.187.237.31]:50882 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757403AbYLCUMo (ORCPT ); Wed, 3 Dec 2008 15:12:44 -0500 Date: Wed, 3 Dec 2008 15:12:03 -0500 From: Jason Baron To: Cornelia Huck Cc: Greg K-H , linux-kernel@vger.kernel.org Subject: Re: [PATCH] DEBUG_KOBJECT vs. DYNAMIC_PRINTK_DEBUG Message-ID: <20081203201203.GA3128@redhat.com> References: <20081202145251.6555d4cc@gondolin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081202145251.6555d4cc@gondolin> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 980 Lines: 30 On Tue, Dec 02, 2008 at 02:52:51PM +0100, Cornelia Huck wrote: > DEBUG_KOBJECT has no effect when DYNAMIC_PRINTK_DEBUG is set > (and you can get the messages via that feature), so let's make > it depend on !DYNAMIC_PRINTK_DEBUG. > indeed. you raise the more general question of what do if both 'DEBUG' and 'CONFIG_DYNAMIC_PRINTK_DEBUG' are set for a file? I think that in general the 'DEBUG' should take precedence, as you point out. However, I think we should fix this by reshuffling the logic in include/linux/kernel.h by doing: if (DEBUG) #define pr_debug printk elseif (CONFIG_DYNAMIC_PRINTK_DEBUG) #define pr_debug dynamic_pr_debug() else #define pr_debug if (0) blah: endif make sense? what do you think? thanks, -Jason -- 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/