diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2016-03-16 23:27:27 +0300 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-05-10 18:20:19 +0300 |
commit | a4663911392efdc504ce97b192d46f2677a6fe35 (patch) | |
tree | 00a29ed653e959ebee9bccaf50b8f3f2626f9a7f /scripts/kconfig/confdata.c | |
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>
Diffstat (limited to 'scripts/kconfig/confdata.c')
-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 dd243d2abd87..297b079ae4d9 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: |