diff options
author | Andy Whitcroft <apw@canonical.com> | 2012-05-03 16:01:39 +0100 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-08-15 23:46:01 -0600 |
commit | 1d563db6e30f8aad74a4cb680db65fc2b581af3a (patch) | |
tree | f1cee0067d19671692356e439f25cf3777119bf7 /scripts | |
parent | 7d2690599442d8e36817c1b43fb41c31236f0faf (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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/lkc.h | 4 |
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"); |