From b18b38f2ae3f54b906e0f2ab86789d9dd0110ed2 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Fri, 30 Jul 2021 12:13:11 +0200 Subject: dm: migrate the dm_warn to use the log macro Migrate the dm_warn function to log macro with LOGC_DM category and LOGL_WARNING level. This macro allows filtering with log command and allows output on all log backend. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- include/dm/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dm/util.h') diff --git a/include/dm/util.h b/include/dm/util.h index 138893c935..c634e470e7 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -7,7 +7,7 @@ #define __DM_UTIL_H #if CONFIG_IS_ENABLED(DM_WARN) -void dm_warn(const char *fmt, ...); +#define dm_warn(fmt...) log(LOGC_DM, LOGL_WARNING, ##fmt) #else static inline void dm_warn(const char *fmt, ...) { -- cgit v1.2.3