diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2016-03-16 20:27:27 (GMT) |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-05-10 15:20:19 (GMT) |
commit | a4663911392efdc504ce97b192d46f2677a6fe35 (patch) | |
tree | 00a29ed653e959ebee9bccaf50b8f3f2626f9a7f | |
parent | f55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff) | |
download | linux-a4663911392efdc504ce97b192d46f2677a6fe35.tar.xz |
kconfig: add unexpected data itself to warning
If the .config parser runs into unexpected data it emits warnings like:
.config:6911:warning: unexpected data
Add the unexpected data itself to this warning. That makes it easier to
discover what is actually going wrong:
.config:6911:warning: unexpected data: CONFOG_CHARGER_TPS65217=m
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Michal Marek <mmarek@suse.com>
-rw-r--r-- | scripts/kconfig/confdata.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index dd243d2..297b079 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -375,7 +375,9 @@ load: continue; } else { if (line[0] != '\r' && line[0] != '\n') - conf_warning("unexpected data"); + conf_warning("unexpected data: %.*s", + (int)strcspn(line, "\r\n"), line); + continue; } setsym: |