Received: by 10.223.176.5 with SMTP id f5csp1090323wra; Wed, 7 Feb 2018 12:29:49 -0800 (PST) X-Google-Smtp-Source: AH8x227jt+zC3kTQs3Bz6XdiJHrrJHVFeAzSy4ZpzLXSGl4f2ZinS0TN9Ap13Up/xDbGFswm02ZL X-Received: by 10.99.130.72 with SMTP id w69mr5099318pgd.389.1518035389505; Wed, 07 Feb 2018 12:29:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518035389; cv=none; d=google.com; s=arc-20160816; b=CDipyyEKvbBlKyHV/OY57PZ4vJfHNNTi+pq2nqYuX7pnIktMa9yiiuhl3WGzG252N1 mC4DL8erBYixCvMYQWq98Wo1sApSy6II1P4Sqb5WunhMzHIjGgPM7g7SwBHy7YF7z6aB I8iHmrleynX++F9zpAFW8EVlkpGgYngn2h7qkKsJvB7sXHd2WrJ3UMhMGGS5E78lbJTs punxCR9xslwFD+9SuvPcFWgkhP5kCZZ7JuMKTPBcBr8cz68Ep6wBLBZIU6mSpkEg20oh OQzZY2hLm8In7JCoNl0HN/EbCy09Zo4hfo/HCvkakrjgozprErp0KYi6x0d9MHVqUqLq 5QeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Ie3xjJ0QFL1iA7DodXBObAxNp+gbTkJ//1UR/llBguE=; b=JaVAj4cQHnUT57qmasNi3i/+x6bfUKdItyMVM70arThEpgvq9ntrmhcgQnx584VpS1 K+seedF648oFCCbhl8RB5M4HmZPNKDayeFcIcx0ZEoNV8dvmclxmh7Hgq0CoLLYZyyn1 +6bg9HB+OAaqw1mdSx1BXl234tHMEMrOnknUNCHOzb2ca7sexx85QDYOfc+KY9zkm51O PvAYQaTrzcyqaEfh+1QHPuGlX+IqTqIdxV5e+iN7myw1icIztwtJRPlN/oGUQZxqJVqB /NAcp7VhNvtqnx94C4jhkfPiowbhpjMJNj1K4wT9hnrUmUbqyOe9F3RB5qIOi2wg8iTU ic5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AE7TiEts; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si1377485pgs.264.2018.02.07.12.29.35; Wed, 07 Feb 2018 12:29:49 -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=@gmail.com header.s=20161025 header.b=AE7TiEts; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbeBGU2o (ORCPT + 99 others); Wed, 7 Feb 2018 15:28:44 -0500 Received: from mail-vk0-f66.google.com ([209.85.213.66]:36880 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754157AbeBGU2l (ORCPT ); Wed, 7 Feb 2018 15:28:41 -0500 Received: by mail-vk0-f66.google.com with SMTP id g83so1391825vki.4; Wed, 07 Feb 2018 12:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ie3xjJ0QFL1iA7DodXBObAxNp+gbTkJ//1UR/llBguE=; b=AE7TiEtsILbkGxmUIPi/gZZeC8BtPl52qbSyejW/M+hBPzkNJG+C9dB1pcmvXteZ8h 3cw0JYQoVEVb5o9ezp/e33156CL6s3Ph22OEagTZeAw18YZ2EpM58vVv4MSQ3C4aNB6s RC+kfSVhoAoFGRXCq4G7P0LTd8fn5bew8+AZJgqGArdMmF+2J4bvF7uLPu5vZqPfQZIO xhDYRLeHLCi/m//ILo58I5R2d2WufeIOBhii12FDehb0db8KL69lHxuyPsTA9MZ9Y8Sp 3K/4UE/cTMhlMiJIHm9ktVtQLmfZKFvxiXcMTa7lzZ+Drd8+N3o1hZUwvc7uwboTemTz xVNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ie3xjJ0QFL1iA7DodXBObAxNp+gbTkJ//1UR/llBguE=; b=U1gEIHUS9nL9zzJq8vaD9E5U8FkVP6qBOGq8eFqGftOpGnb+4EOSQQqKywnU5YPnqT 1hkrn4nPf0VVSruj8JZ590fstBQxmAAkyrQHSzjWW5klr8FplhYpsvIdYOVBvrk9TuF9 SdO2DJE5uiQVeJZu2ktQJSy5Q0PyysSz2wLDpNxWX/0ZWOLy+wRdi4X7iauaD4TByYtX np6BtIumOi5vUNzU0RMNji7/ZINEMGWFKAs0ievy2sjSCD+eMTBL3mOmLCEeX5qlY6Gt 49iPRLJIQVIYwzj3mc8JzTzWVzgBf4vIX8iMaaxWM8mr9J9iCtcRX/6tiwfY9rDSez21 trPg== X-Gm-Message-State: APf1xPARaH/oxta5GAuVncel9PMhmV5AVLlQARxECyhKlleCu0zORsIY TZ30+W22orTg+mFz+RI+475HWz43Lc59xqo8mv0= X-Received: by 10.31.69.2 with SMTP id s2mr6388923vka.56.1518035320552; Wed, 07 Feb 2018 12:28:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.70.21 with HTTP; Wed, 7 Feb 2018 12:28:40 -0800 (PST) In-Reply-To: <1517877294-4826-4-git-send-email-yamada.masahiro@socionext.com> References: <1517877294-4826-1-git-send-email-yamada.masahiro@socionext.com> <1517877294-4826-4-git-send-email-yamada.masahiro@socionext.com> From: Ulf Magnusson Date: Wed, 7 Feb 2018 21:28:40 +0100 Message-ID: Subject: Re: [PATCH 03/14] kconfig: show '?' prompt even if no help text is available To: Masahiro Yamada Cc: Linux Kbuild mailing list , Greg Kroah-Hartman , Andrew Morton , Nicolas Pitre , "Luis R . Rodriguez" , Randy Dunlap , Sam Ravnborg , Michal Marek , Linus Torvalds , Linux Kernel Mailing List , Marc Herbert Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 6, 2018 at 1:34 AM, Masahiro Yamada wrote: > '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 > Reviewed-by: Ulf Magnusson