Received: by 10.223.176.5 with SMTP id f5csp61146wra; Mon, 5 Feb 2018 16:41:52 -0800 (PST) X-Google-Smtp-Source: AH8x224d+FQJbRys5z8F6bzp74FghS95dxmAbXVNUHimWU+leAx+xYUdVum4vh5jKEE2njzTGnHZ X-Received: by 10.99.2.67 with SMTP id 64mr404722pgc.117.1517877712156; Mon, 05 Feb 2018 16:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517877712; cv=none; d=google.com; s=arc-20160816; b=VYXk+GfJNq9PSod/c2zc/CpttLL1M4ioE9G+usXzwctAUHEW5mowsE2CAGAm53O9x3 AhFXb2egycsabJ7I+Ofk7HM0TXGmxReg5FOoVoAMO1pG4lCtopKB9RcCDHXygLgC3B/A sLu6iKOjNa9C9OUARTZjikw42btjDs7n6g07Tvxmot2A8HIQ4p93vn9WhxYfRygk9auE MBC3zFxYNcotTr56BsA7vSVzt7vGuKjc19S9SMD1WrDrYllYEMFTqiFnQSkQbIEQEbMO CHLQoA+SQaTzXDh/yabf8Tnj0AgN9c/HYIO62zpXaIMag/eVZpiVMijjApQjYevL5TLT DQ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=bLojHb0MdVijoOprmBRkaKTU1H/92xNDhc4zozTi0o8=; b=UkI2JLJyG2DM5izbOjR9NLIr1bf9mvmKyhXwDaOq4RNJ/Ir9fA4/HFu+btJMNWCASI KkXFjNRkbr8h10TvrXeT4B8wQAxlyLH9IGcykj1EvdJmsu/+hNOjYDshZYkas4cVXizF Tif6amg+qbs7pHuEXr6/e2Xf5+4s0UBSc01p6qlmA7GteatInlBeYsGJvFi7z4F5eDJb 1tiT5HORU/brAGjCiXMvvqyEJdaJMLV07ctWjPtxnbq+5zUzzpog4s5V55/uzO9hn7mv p4usmsFmNiPHLpmaPnzKW+Sr9fNKW4kOkwFs4+4qN5l6ahoqWwqZUAKhodm17uaH42uq PGRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JQ0+PpGv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c3-v6si1191521pld.174.2018.02.05.16.41.35; Mon, 05 Feb 2018 16:41:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=JQ0+PpGv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbeBFAjw (ORCPT + 99 others); Mon, 5 Feb 2018 19:39:52 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:40211 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752412AbeBFAiH (ORCPT ); Mon, 5 Feb 2018 19:38:07 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-07.nifty.com with ESMTP id w160ZHAi011351; Tue, 6 Feb 2018 09:35:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w160ZHAi011351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1517877321; bh=bLojHb0MdVijoOprmBRkaKTU1H/92xNDhc4zozTi0o8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JQ0+PpGvkB1YVC1o0mBV5cyxkFVcbWJ6DVjn4Grnav8lE7wbF2I3HCo6ro+7CIg/h 78bm8UCZ//NHqmejijd9o1c3ZT6JZOSx50SghXnu2Ds7oc2+um0K+c8kPQo6snPTwY skT+u0XBKiYmtsneNfy0nx5hMJquLXxKxheH1QmETp/y5AER9ErZC/9RXxZ71S7Fxv kSQxQw094haJfXf782kJhsr0QhFrdk/MaqgbfPiQSsLrzmdBGLDDEhWdNXSLiXbVNv 4fXlYz1IajtZnR/+1mGGE1U5aog9gcXNuYcSAdzxkMarIV4jCCeeOHksl7ktgCxizN krOE48G0v4J8g== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Ulf Magnusson , Sam Ravnborg , Michal Marek , Linus Torvalds , Masahiro Yamada , linux-kernel@vger.kernel.org, Marc Herbert Subject: [PATCH 03/14] kconfig: show '?' prompt even if no help text is available Date: Tue, 6 Feb 2018 09:34:43 +0900 Message-Id: <1517877294-4826-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> References: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'make config', 'make oldconfig', etc. always receive '?' as a valid input and show useful information even if no help text is available. ------------------------>8------------------------ foo (FOO) [N/y] (NEW) ? There is no help available for this option. Symbol: FOO [=n] Type : bool Prompt: foo Defined at Kconfig:1 ------------------------>8------------------------ However, '?' is not shown in the prompt if its help text is missing. Let's show '?' all the time so that the prompt and the behavior match. Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 90a76aa2..d346642 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -201,9 +201,7 @@ static int conf_sym(struct menu *menu) printf("/m"); if (oldval != yes && sym_tristate_within_range(sym, yes)) printf("/y"); - if (menu_has_help(menu)) - printf("/?"); - printf("] "); + printf("/?] "); if (!conf_askvalue(sym, sym_get_string_value(sym))) return 0; strip(line); @@ -305,10 +303,7 @@ static int conf_choice(struct menu *menu) printf("[1]: 1\n"); goto conf_childs; } - printf("[1-%d", cnt); - if (menu_has_help(menu)) - printf("?"); - printf("]: "); + printf("[1-%d?]: ", cnt); switch (input_mode) { case oldconfig: case silentoldconfig: -- 2.7.4