[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1259124522-26050-1-git-send-email-vapier@gentoo.org>
Date: Tue, 24 Nov 2009 23:48:42 -0500
From: Mike Frysinger <vapier@...too.org>
To: linux-kbuild@...r.kernel.org, Sam Ravnborg <sam@...nborg.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] kconfig: display an error message when aborting
If the Kconfig option causes an open() failure (like one that starts with
an underscore), there should be an error message shown since we're going
to be exiting with an error code. Otherwise, the reason for the failure
can really only be diagnosed with strace or something similar.
Signed-off-by: Mike Frysinger <vapier@...too.org>
---
scripts/kconfig/confdata.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index b55e72f..e2644b4 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -640,6 +640,8 @@ static int conf_split_config(void)
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (fd == -1) {
if (errno != ENOENT) {
+ conf_warning("sym '%s' with path '%s': %s",
+ sym->name, path, strerror(errno));
res = 1;
break;
}
--
1.6.5.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists