From: Nick Warne <nick@linicks.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.6.16.18 scripts/kconfig/mconf.c
Date: Thu, 1 Jun 2006 06:28:08 +0100 [thread overview]
Message-ID: <200606010628.08966.nick@linicks.net> (raw)
I noticed some options using 'make menuconfig help' produced nonsense results,
e.g. going into 'Processor types and features' and then selecting 'help'
option on 'Timer frequency' produces:
Symbol: (null) [=y]
Prompt: Timer frequency
Defined at kernel/Kconfig.hz:5
Location:
-> Processor type and features
Selected by: m
This attempted patch fixes this explaining there is no help
for menu expander, or if there is just prints the relevant help message alone,
otherwise the 'top level menu help' dialogue gets printed as normal.
I think the get_symbol_str(&help, sym); could be moved into the 'if
(sym->name)' test, but there are too many options to check and change, so it
seems a good idea to leave in where is and just return if !sym->name.
Nick
--- linux-current/scripts/kconfig/mconf.cORIG 2006-05-30 18:58:59.000000000
+0100
+++ linux-current/scripts/kconfig/mconf.c 2006-05-30 19:10:29.000000000 +0100
@@ -402,6 +402,9 @@
bool hit;
struct property *prop;
+ if (!sym->name)
+ return;
+
str_printf(r, "Symbol: %s [=%s]\n", sym->name,
sym_get_string_value(sym));
for_all_prompts(sym, prop)
@@ -853,15 +856,17 @@
{
if (sym->name) {
str_printf(&help, "CONFIG_%s:\n\n", sym->name);
- str_append(&help, _(sym->help));
- str_append(&help, "\n");
}
- } else {
- str_append(&help, nohelp_text);
- }
+ str_append(&help, _(sym->help));
+ str_append(&help, "\n");
get_symbol_str(&help, sym);
show_helptext(menu_get_prompt(menu), str_get(&help));
str_free(&help);
+ } else {
+ str_append(&help, nohelp_text);
+ show_helptext(menu_get_prompt(menu), str_get(&help));
+ str_free(&help);
+ }
}
static void show_file(const char *filename, const char *title, int r, int c)
--
"Person who say it cannot be done should not interrupt person doing it."
-Chinese Proverb
next reply other threads:[~2006-06-01 5:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-01 5:28 Nick Warne [this message]
2006-06-02 14:17 ` [PATCH] 2.6.16.18 scripts/kconfig/mconf.c Roman Zippel
2006-06-02 17:37 ` Nick Warne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606010628.08966.nick@linicks.net \
--to=nick@linicks.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox