summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEgry Gabor <gaboregry@t-online.hu>2005-09-03 15:55:12 -0700
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 00:05:49 -0700
commitc196eff3060270f155343b63ef3d06f31ccfcd2e (patch)
tree5a4c173a30b47459713af1a33343e4636eba529d /scripts
parentc07e02db76940c75fc92f2f2c9adcdbb09ed70d0 (diff)
downloadlinux-3.10-c196eff3060270f155343b63ef3d06f31ccfcd2e.tar.gz
linux-3.10-c196eff3060270f155343b63ef3d06f31ccfcd2e.tar.bz2
linux-3.10-c196eff3060270f155343b63ef3d06f31ccfcd2e.zip
[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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/kxgettext.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/kconfig/kxgettext.c b/scripts/kconfig/kxgettext.c
index 1c88d7c6d5a..ad1cb9451a2 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');
}