kconfig: use the file's name of sourced file
authorArnaud Lacombe <lacombar@gmail.com>
Sat, 4 Sep 2010 20:09:26 +0000 (16:09 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Mon, 20 Sep 2010 02:54:04 +0000 (22:54 -0400)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/zconf.l

index 2b0265082d0aa95b88e7b5f7ee3953be93000fee..3dbaec185cc486d183ed5ba87cfe848635e4b968 100644 (file)
@@ -304,9 +304,10 @@ void zconf_nextfile(const char *name)
        memset(buf, 0, sizeof(*buf));
 
        current_buf->state = YY_CURRENT_BUFFER;
-       yyin = zconf_fopen(name);
+       yyin = zconf_fopen(file->name);
        if (!yyin) {
-               printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name);
+               printf("%s:%d: can't open file \"%s\"\n",
+                   zconf_curname(), zconf_lineno(), file->name);
                exit(1);
        }
        yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));