[PATCH] mach-snapdragon: configure logging

Caleb Connolly caleb.connolly at linaro.org
Wed Nov 13 06:04:17 CET 2024


Set LOG_CATEGORY and pr_fmt. Also fix the time.h include.

Signed-off-by: Caleb Connolly <caleb.connolly at linaro.org>
---
 arch/arm/mach-snapdragon/board.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-snapdragon/board.c b/arch/arm/mach-snapdragon/board.c
index 2ab2ceb51389..bbe9d3de7636 100644
--- a/arch/arm/mach-snapdragon/board.c
+++ b/arch/arm/mach-snapdragon/board.c
@@ -5,9 +5,11 @@
  * Copyright (c) 2024 Linaro Ltd.
  * Author: Caleb Connolly <caleb.connolly at linaro.org>
  */
 
-#include "time.h"
+#define LOG_CATEGORY LOGC_BOARD
+#define pr_fmt(fmt) "QCOM: " fmt
+
 #include <asm/armv8/mmu.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/psci.h>
@@ -28,8 +30,9 @@
 #include <malloc.h>
 #include <fdt_support.h>
 #include <usb.h>
 #include <sort.h>
+#include <time.h>
 
 #include "qcom-priv.h"
 
 DECLARE_GLOBAL_DATA_PTR;
-- 
2.47.0



More information about the U-Boot mailing list