From: Arnaud Lacombe Date: Sat, 4 Sep 2010 20:09:26 +0000 (-0400) Subject: kconfig: use the file's name of sourced file X-Git-Tag: v2.6.37-rc1~51^2~9^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e82dae9083c8ca97c0f6ba1f5d09591aff67bb4e;p=platform%2Fkernel%2Flinux-exynos.git kconfig: use the file's name of sourced file Signed-off-by: Arnaud Lacombe Reviewed-by: Sam Ravnborg Reviewed-by: Michal Marek --- diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 2b02650..3dbaec1 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -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));