aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2012-05-03 16:01:39 +0100
committerJohn Rigby <john.rigby@linaro.org>2012-06-25 15:02:24 -0600
commite9f6020b6832f5d82f36dbce663e7109f102a346 (patch)
treeb05cc63b5639384de2f1af974624c118541f37ae
parent47b844782eab75e1e6f077f66e36847ee7213ffd (diff)
kconfig: in debug mode some 0 length message prints occur
When we enable the zconfdump() debugging we see assertion failures attempting to print the config. Convert this into a noop. Signed-off-by: Andy Whitcroft <apw@canonical.com>
-rw-r--r--scripts/kconfig/lkc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h
index c18f2bd9c09..608cf6558bd 100644
--- a/scripts/kconfig/lkc.h
+++ b/scripts/kconfig/lkc.h
@@ -90,7 +90,9 @@ struct conf_printer {
/* confdata.c and expr.c */
static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out)
{
- assert(len != 0);
+ //assert(len != 0);
+ if (len == 0)
+ return;
if (fwrite(str, len, count, out) != count)
fprintf(stderr, "Error in writing or end of file.\n");