projects/linux·commit c196eff3

[PATCH] kconfig: kxgettext: message fix

c196eff3 · Egry Gabor <[email protected]> · 2005-09-03 15:55:12 -07:00

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

Signed-off-by: Egry Gabor <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Roman Zippel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
c196eff3060270f155343b63ef3d06f31ccfcd2e
Parents
c07e02db

Changes

1 files changed · +5 −4

FileStatusAddDelContent
scripts/kconfig/kxgettext.cmodified+5−4View file

scripts/kconfig/kxgettext.c

View file
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c
index 1c88d7c..ad1cb94 100644
--- a/scripts/kconfig/kxgettext.c
+++ b/scripts/kconfig/kxgettext.c
@@ -179,7 +179,11 @@ static void message__print_file_lineno(struct message *self)
{
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;
while (fl != NULL) {
@@ -187,9 +191,6 @@ static void message__print_file_lineno(struct message *self)
fl = fl->next;
}
- if (self->option != NULL)
- printf(", %s:00000", self->option);
-
putchar('\n');
}