blob: 00e94003f27caa7ff6b6afe6145ff41bc7134625 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/kconf/conf.c
2+++ b/kconf/conf.c
3@@ -86,7 +86,7 @@ static int conf_askvalue(struct symbol *
4 enum symbol_type type = sym_get_type(sym);
5
6 if (!sym_has_value(sym))
7- printf(_("(NEW) "));
8+ printf("%s", _("(NEW) "));
9
10 line[0] = '\n';
11 line[1] = 0;
12@@ -282,7 +282,7 @@ static int conf_choice(struct menu *menu
13 if (child->sym->name)
14 printf(" (%s)", child->sym->name);
15 if (!sym_has_value(child->sym))
16- printf(_(" (NEW)"));
17+ printf("%s", _(" (NEW)"));
18 printf("\n");
19 }
20 printf(_("%*schoice"), indent - 1, "");
21@@ -437,7 +437,7 @@ static void check_conf(struct menu *menu
22 }
23 } else {
24 if (!conf_cnt++)
25- printf(_("*\n* Restart config...\n*\n"));
26+ printf("%s", _("*\n* Restart config...\n*\n"));
27 rootEntry = menu_get_parent_menu(menu);
28 conf(rootEntry);
29 }
30@@ -614,7 +614,7 @@ int main(int ac, char **av)
31 name = getenv("KCONFIG_NOSILENTUPDATE");
32 if (name && *name) {
33 fprintf(stderr,
34- _("\n*** The configuration requires explicit update.\n\n"));
35+ "%s", _("\n*** The configuration requires explicit update.\n\n"));
36 return 1;
37 }
38 }
39@@ -666,22 +666,22 @@ int main(int ac, char **av)
40 * All other commands are only used to generate a config.
41 */
42 if (conf_get_changed() && conf_write(NULL)) {
43- fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
44+ fprintf(stderr, "%s", _("\n*** Error during writing of the configuration.\n\n"));
45 exit(1);
46 }
47 if (conf_write_autoconf()) {
48- fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
49+ fprintf(stderr, "%s", _("\n*** Error during update of the configuration.\n\n"));
50 return 1;
51 }
52 } else if (input_mode == savedefconfig) {
53 if (conf_write_defconfig(defconfig_file)) {
54- fprintf(stderr, _("n*** Error while saving defconfig to: %s\n\n"),
55+ fprintf(stderr, _("\n*** Error while saving defconfig to: %s\n\n"),
56 defconfig_file);
57 return 1;
58 }
59 } else if (input_mode != listnewconfig) {
60 if (conf_write(NULL)) {
61- fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
62+ fprintf(stderr, "%s", _("\n*** Error during writing of the configuration.\n\n"));
63 exit(1);
64 }
65 }
66--- a/kconf/Makefile
67+++ b/kconf/Makefile
68@@ -17,7 +17,7 @@ clean:
69 zconf.tab.c: zconf.lex.c
70
71 %.tab.c: %.y
72- $(YACC) -o$@ -t -l $<
73+ $(YACC) -Wno-yacc -o$@ -t -l $<
74
75 %.lex.c: %.l
76 $(LEX) -o$@ -L $<