summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Walch <walch.martin@web.de>2013-10-03 18:32:02 +0200
committerYann E. MORIN <yann.morin.1998@free.fr>2013-10-08 23:52:15 +0200
commit57540f1dea6580fda0debaf3704d1b0e928a120e (patch)
tree04870bf11769a7e4b90cb4023ccf040d3e85d46e
parent8d9dfe8276750aaf30ca1b59b4c3f9349377cb6e (diff)
downloadlinux-57540f1dea6580fda0debaf3704d1b0e928a120e.tar.bz2
kconfig: adjust warning message for conflicting types
Each symbol must have exactly one type assigned. However, if a symbol happens to have two different types assigned at runtime, a warning is printed and the first type is preserved while the second type is being ignored. The warning message says type of <symbol name> redefined from <first type> to <second type> which may be misleading as it may create the impression that the second type replaces the first type. This patch clarifies this by changing the warning to ignoring type redefinition of <symbol name> from <first type> to <second type> Signed-off-by: Martin Walch <walch.martin@web.de> Acked-by: Wang YanQing <udknight@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rw-r--r--scripts/kconfig/menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index b9701010de8c..9e69f1934836 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -119,9 +119,10 @@ void menu_set_type(int type)
sym->type = type;
return;
}
- menu_warn(current_entry, "type of '%s' redefined from '%s' to '%s'",
- sym->name ? sym->name : "<choice>",
- sym_type_name(sym->type), sym_type_name(type));
+ menu_warn(current_entry,
+ "ignoring type redefinition of '%s' from '%s' to '%s'",
+ sym->name ? sym->name : "<choice>",
+ sym_type_name(sym->type), sym_type_name(type));
}
struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)