]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: (no-up) kconfig: in debug mode some 0 length message prints occur
authorAndy Whitcroft <apw@canonical.com>
Thu, 3 May 2012 15:01:39 +0000 (16:01 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:32:35 +0000 (07:32 -0500)
Has no real kernel impact, so continue to carry.

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>
scripts/kconfig/lkc.h

index 91ca126ea0802e40278bbbf09b3413ce59c1bc15..9faeb237f7ae95b546b856de7bbbb446b8455cc8 100644 (file)
@@ -88,7 +88,9 @@ void set_all_choice_values(struct symbol *csym);
 /* 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");