]> git.proxmox.com Git - mirror_ubuntu-disco-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>
Mon, 4 Mar 2019 12:50:59 +0000 (06:50 -0600)
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 531ff7c57d92dce95e933fee200e6fc0ed3f13b4..aa024691e22f5bbb2d7e8b2f2df485c56b139aa1 100644 (file)
@@ -59,7 +59,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");