Commit 4280eae0 authored by Li Zefan's avatar Li Zefan Committed by Michal Marek

kconfig: some small fixes

- fix a typo in documentation
- fix a typo in a printk on error
- fix comments in dialog_inputbox()
Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 7926c09d
...@@ -181,7 +181,7 @@ Expressions are listed in decreasing order of precedence. ...@@ -181,7 +181,7 @@ Expressions are listed in decreasing order of precedence.
(7) Returns the result of max(/expr/, /expr/). (7) Returns the result of max(/expr/, /expr/).
An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2 An expression can have a value of 'n', 'm' or 'y' (or 0, 1, 2
respectively for calculations). A menu entry becomes visible when it's respectively for calculations). A menu entry becomes visible when its
expression evaluates to 'm' or 'y'. expression evaluates to 'm' or 'y'.
There are two types of symbols: constant and non-constant symbols. There are two types of symbols: constant and non-constant symbols.
......
...@@ -180,7 +180,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width ...@@ -180,7 +180,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width
case KEY_LEFT: case KEY_LEFT:
switch (button) { switch (button) {
case -1: case -1:
button = 1; /* Indicates "Cancel" button is selected */ button = 1; /* Indicates "Help" button is selected */
print_buttons(dialog, height, width, 1); print_buttons(dialog, height, width, 1);
break; break;
case 0: case 0:
...@@ -204,7 +204,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width ...@@ -204,7 +204,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width
print_buttons(dialog, height, width, 0); print_buttons(dialog, height, width, 0);
break; break;
case 0: case 0:
button = 1; /* Indicates "Cancel" button is selected */ button = 1; /* Indicates "Help" button is selected */
print_buttons(dialog, height, width, 1); print_buttons(dialog, height, width, 1);
break; break;
case 1: case 1:
......
...@@ -197,7 +197,7 @@ static void sym_check_prop(struct symbol *sym) ...@@ -197,7 +197,7 @@ static void sym_check_prop(struct symbol *sym)
if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) &&
prop->expr->type != E_SYMBOL) prop->expr->type != E_SYMBOL)
prop_warn(prop, prop_warn(prop,
"default for config symbol '%'" "default for config symbol '%s'"
" must be a single symbol", sym->name); " must be a single symbol", sym->name);
break; break;
case P_SELECT: case P_SELECT:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment