X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=scripts%2Fkconfig%2Fzconf.l;h=21ff69c9ad4e846b3c409216a86434e587b22989;hb=ff2c3de305e2d06ae556e1a382ed75c5dd8f9dda;hp=4cea5c85cd0a9297f029d58cf97c4771825f4641;hpb=f7a4b4cdc26846a0ac5b3023cb1b97dc632dfd35;p=safe%2Fjmp%2Flinux-2.6 diff --git a/scripts/kconfig/zconf.l b/scripts/kconfig/zconf.l index 4cea5c8..21ff69c 100644 --- a/scripts/kconfig/zconf.l +++ b/scripts/kconfig/zconf.l @@ -1,5 +1,6 @@ %option backup nostdinit noyywrap never-interactive full ecs %option 8bit backup nodefault perf-report perf-report +%option noinput %x COMMAND HELP STRING PARAM %{ /* @@ -313,11 +314,14 @@ void zconf_nextfile(const char *name) current_buf = buf; if (file->flags & FILE_BUSY) { - printf("recursive scan (%s)?\n", name); + printf("%s:%d: do not source '%s' from itself\n", + zconf_curname(), zconf_lineno(), name); exit(1); } if (file->flags & FILE_SCANNED) { - printf("file %s already scanned?\n", name); + printf("%s:%d: file '%s' is already sourced from '%s'\n", + zconf_curname(), zconf_lineno(), name, + file->parent->name); exit(1); } file->flags |= FILE_BUSY;