aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/menu.c
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2014-01-02 08:02:06 -0500
committerMichal Marek <mmarek@suse.cz>2014-01-02 08:02:06 -0500
commit37e2c2a775fc887acd1432908478dfd532f7f00f (patch)
treee51ebc699d8e262fd47e0913be6a711cb1a7b565 /scripts/kconfig/menu.c
parent1c8ddae09f4c102b97c9086cc70347e89468a547 (diff)
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
Merge commit v3.13-rc1 into kbuild/misc
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r--scripts/kconfig/menu.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index c1d53200c306..db1512ae30cc 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -119,9 +119,10 @@ void menu_set_type(int type)
119 sym->type = type; 119 sym->type = type;
120 return; 120 return;
121 } 121 }
122 menu_warn(current_entry, "type of '%s' redefined from '%s' to '%s'", 122 menu_warn(current_entry,
123 sym->name ? sym->name : "<choice>", 123 "ignoring type redefinition of '%s' from '%s' to '%s'",
124 sym_type_name(sym->type), sym_type_name(type)); 124 sym->name ? sym->name : "<choice>",
125 sym_type_name(sym->type), sym_type_name(type));
125} 126}
126 127
127struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep) 128struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)
@@ -583,7 +584,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
583 for (j = 4; --i >= 0; j += 2) { 584 for (j = 4; --i >= 0; j += 2) {
584 menu = submenu[i]; 585 menu = submenu[i];
585 if (head && location && menu == location) 586 if (head && location && menu == location)
586 jump->offset = r->len - 1; 587 jump->offset = strlen(r->s);
587 str_printf(r, "%*c-> %s", j, ' ', 588 str_printf(r, "%*c-> %s", j, ' ',
588 _(menu_get_prompt(menu))); 589 _(menu_get_prompt(menu)));
589 if (menu->sym) { 590 if (menu->sym) {
@@ -597,7 +598,7 @@ static void get_prompt_str(struct gstr *r, struct property *prop,
597} 598}
598 599
599/* 600/*
600 * get peoperty of type P_SYMBOL 601 * get property of type P_SYMBOL
601 */ 602 */
602static struct property *get_symbol_prop(struct symbol *sym) 603static struct property *get_symbol_prop(struct symbol *sym)
603{ 604{