]> git.proxmox.com Git - mirror_ubuntu-impish-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)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:38 +0000 (08:03 +0200)
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 fa8c010aa6834718679a7a1bfe208c16c5b31ea4..059c2e8170acea0607f17b0b2010cb1a79f72b2c 100644 (file)
@@ -46,7 +46,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");