From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932958AbcDYP7n (ORCPT ); Mon, 25 Apr 2016 11:59:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:51192 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932785AbcDYP7l (ORCPT ); Mon, 25 Apr 2016 11:59:41 -0400 Date: Mon, 25 Apr 2016 17:59:38 +0200 From: Petr Mladek To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, John Stultz , Xunlei Pang , Thomas Gleixner , Baolin Wang , Andrew Morton , Greg Kroah-Hartman , Tejun Heo , Peter Hurley , Vasily Averin , Joe Perches Subject: Re: [PATCH 1/2] lib, switch CONFIG_PRINTK_TIME to int Message-ID: <20160425155938.GC19702@pathway.suse.cz> References: <1461326589-27722-1-git-send-email-prarit@redhat.com> <1461326589-27722-2-git-send-email-prarit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1461326589-27722-2-git-send-email-prarit@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2016-04-22 08:03:08, Prarit Bhargava wrote: > CONFIG_PRINTK_TIME is a bool and in order to add timestamp options for > the monotonic and real time clock it must be expanded to an int. > > diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig > index 4f404a6..0250dbd 100644 > --- a/arch/x86/configs/x86_64_defconfig > +++ b/arch/x86/configs/x86_64_defconfig > @@ -284,7 +284,7 @@ CONFIG_NLS_CODEPAGE_437=y > CONFIG_NLS_ASCII=y > CONFIG_NLS_ISO8859_1=y > CONFIG_NLS_UTF8=y > -CONFIG_PRINTK_TIME=y > +CONFIG_PRINTK_TIME=1 > # CONFIG_ENABLE_WARN_DEPRECATED is not set > CONFIG_MAGIC_SYSRQ=y > # CONFIG_UNUSED_SYMBOLS is not set > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 1e9a607..774aa38 100644 [...] > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1,7 +1,9 @@ > menu "printk and dmesg options" > > config PRINTK_TIME > - bool "Show timing information on printks" > + int "Show timing information on printks (0-1)" > + range 0 1 > + default "0" I get "0" as the default when running "make" with this patch: $>> make oldconfig scripts/kconfig/conf --oldconfig Kconfig .config:3463:warning: symbol value 'y' invalid for PRINTK_TIME * * Restart config... * * * printk and dmesg options * Show timing information on printks (0-3) (PRINTK_TIME) [0] (NEW) ^^^ And it really writes 0 into .config: $>> grep PRINTK_TIME .config CONFIG_PRINTK_TIME=0 It seems that arch/x86/configs/x86_64_defconfig is used only when you call "make defconfig" Hmm, this might be surprising and annoying for many people. I would suggest to make "1" as the default value and remove the default from all that defconfigs. It is default on almost all systems and it is why people would expect. Best Regards, Petr