[Skiboot] [PATCH V2 07/10] pldm: Export logging feature

Christophe Lombard clombard at linux.vnet.ibm.com
Tue Mar 15 23:49:11 AEDT 2022


To retrieve specific log traces from the external library: libmctp, we
need to export the logging api.

Signed-off-by: Christophe Lombard <clombard at linux.vnet.ibm.com>
---
 core/console-log.c | 2 +-
 include/skiboot.h  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/console-log.c b/core/console-log.c
index 21a1442b..a0d11768 100644
--- a/core/console-log.c
+++ b/core/console-log.c
@@ -15,7 +15,7 @@
 #include "timebase.h"
 #include <debug_descriptor.h>
 
-static int vprlog(int log_level, const char *fmt, va_list ap)
+int vprlog(int log_level, const char *fmt, va_list ap)
 {
 	int count;
 	char buffer[320];
diff --git a/include/skiboot.h b/include/skiboot.h
index db08f45f..7ab5d168 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -79,6 +79,7 @@ static inline bool is_rodata(const void *p)
 #define pr_fmt(fmt) fmt
 #endif
 
+int vprlog(int log_level, const char *fmt, va_list ap);
 void _prlog(int log_level, const char* fmt, ...) __attribute__((format (printf, 2, 3)));
 #define prlog(l, f, ...) do { _prlog(l, pr_fmt(f), ##__VA_ARGS__); } while(0)
 #define prerror(fmt...)	do { prlog(PR_ERR, fmt); } while(0)
-- 
2.35.1



More information about the Skiboot mailing list