From patchwork Tue Feb 6 00:34:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 126935 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2441880ljc; Mon, 5 Feb 2018 16:39:54 -0800 (PST) X-Google-Smtp-Source: AH8x225TzE4VyoVGQYmUD9hOuOQMBZkLKog0NLenQMlGwy1V1x3/yx9dqMXcC84VUkcZ14LWSrS+ X-Received: by 2002:a17:902:9005:: with SMTP id a5-v6mr566946plp.251.1517877593977; Mon, 05 Feb 2018 16:39:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517877593; cv=none; d=google.com; s=arc-20160816; b=UXj6oHwkR9eyn166Rq9jDzRa0mzsaJ62K9LO/4yWaB+tW1nOHkVa+eiRpzifBiO35g c2/Edi0u3LsU3M7IMl31kUSzzsIVWYZ0644qms4mFWYb514IFkTBLesLCYbCbI8NUzZY qrWPYWvYwhl0Euih77mUzFjiwWCXCtIAcuYE4Vxq+NKkO5p3lskexTpawwjSgPMZjw4i g4mjrr79oqWcjMFgpzpT0yE8hYlAqSomWbxDykgLMWV5ryAF97e1NIn+WJDKLGRqT1Oz sA0kipMdxjAm4lBjdCWMpYKDMDZR9x4HMBYkCm9/0gm/Xv/3fLXD3j/uLWwNjxO7SXYg ATyw== 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 i22-v6si712233pll.332.2018.02.05.16.39.53; Mon, 05 Feb 2018 16:39:53 -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 S1752642AbeBFAjw (ORCPT + 21 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(-) -- 2.7.4 Reviewed-by: Ulf Magnusson 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: