History

kconfig: use the file's name of sourced file

Arnaud Lacombe committed 16 years ago

Commit e82dae91 parent 2e7a0911 file · +3 −2Browse files

Unified · Split

scripts/kconfig/zconf.l+3−2
@@ -304,9 +304,10 @@ void zconf_nextfile(const char *name) · 303 unmodified lines
304304 memset(buf, 0, sizeof(*buf));
305305
306306 current_buf->state = YY_CURRENT_BUFFER;
307− yyin = zconf_fopen(name);
307+ yyin = zconf_fopen(file->name);
308308 if (!yyin) {
309− printf("%s:%d: can't open file \"%s\"\n", zconf_curname(), zconf_lineno(), name);
309+ printf("%s:%d: can't open file \"%s\"\n",
310+ zconf_curname(), zconf_lineno(), file->name);
310311 exit(1);
311312 }
312313 yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE));