浏览代码

[PATCH] kconfig: kxgettext: message fix

The gettext doesn't handle the {CONFIG}:00000 markers as sources.  I added a
simple comment prefix for them.

Signed-off-by: Egry Gabor <gaboregry@t-online.hu>
Cc: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Egry Gabor 20 年之前
父节点
当前提交
c196eff306
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      scripts/kconfig/kxgettext.c

+ 5 - 4
scripts/kconfig/kxgettext.c

@@ -179,7 +179,11 @@ static void message__print_file_lineno(struct message *self)
 {
 {
 	struct file_line *fl = self->files;
 	struct file_line *fl = self->files;
 
 
-	printf("\n#: %s:%d", fl->file, fl->lineno);
+	putchar('\n');
+	if (self->option != NULL)
+		printf("# %s:00000\n", self->option);
+
+	printf("#: %s:%d", fl->file, fl->lineno);
 	fl = fl->next;
 	fl = fl->next;
 
 
 	while (fl != NULL) {
 	while (fl != NULL) {
@@ -187,9 +191,6 @@ static void message__print_file_lineno(struct message *self)
 		fl = fl->next;
 		fl = fl->next;
 	}
 	}
 
 
-	if (self->option != NULL)
-		printf(", %s:00000", self->option);
-
 	putchar('\n');
 	putchar('\n');
 }
 }