]> Git Repo - J-u-boot.git/blobdiff - common/log_console.c
Merge tag 'dm-pull-2nov24' of https://source.denx.de/u-boot/custodians/u-boot-dm
[J-u-boot.git] / common / log_console.c
index bb091ce21a4a616e763406b4f4c8e1a61acd0932..9376baad664c9de15b45e5d7fb5a9cc62cb20bde 100644 (file)
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 
@@ -39,10 +38,10 @@ static int log_console_emit(struct log_device *ldev, struct log_rec *rec)
                        printf("%d-", rec->line);
                if (fmt & BIT(LOGF_FUNC)) {
                        if (CONFIG_IS_ENABLED(USE_TINY_PRINTF)) {
-                               printf("%s()", rec->func);
+                               printf("%s()", rec->func ?: "?");
                        } else {
                                printf("%*s()", CONFIG_LOGF_FUNC_PAD,
-                                      rec->func);
+                                      rec->func ?: "?");
                        }
                }
        }
This page took 0.025214 seconds and 4 git commands to generate.