[PATCH 2/2] common: bbu: add pr_fmt

Rouven Czerwinski r.czerwinski at pengutronix.de
Fri Jun 18 05:05:58 PDT 2021


This makes it easier to identify where messages are coming from.

Signed-off-by: Rouven Czerwinski <r.czerwinski at pengutronix.de>
---
 common/bbu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/bbu.c b/common/bbu.c
index a66be553e9..deb6a007c9 100644
--- a/common/bbu.c
+++ b/common/bbu.c
@@ -4,6 +4,9 @@
  *
  * Copyright (c) 2012 Sascha Hauer <s.hauer at pengutronix.de>, Pengutronix
  */
+
+#define pr_fmt(fmt) "bbu: " fmt
+
 #include <common.h>
 #include <bbu.h>
 #include <linux/list.h>
-- 
2.31.1




More information about the barebox mailing list