]> git.proxmox.com Git - mirror_ubuntu-focal-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, 25 Nov 2019 13:56:23 +0000 (14:56 +0100)
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 4fb16f3166268fd5686b303797561374f58470cf..438020433e3c8fd44b789074701a5ffb43bc6c4f 100644 (file)
@@ -57,7 +57,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");