summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Delaunay <[email protected]>2021-07-30 12:13:11 +0200
committerSimon Glass <[email protected]>2021-08-08 11:27:27 -0600
commitb18b38f2ae3f54b906e0f2ab86789d9dd0110ed2 (patch)
tree8bb69dfc8bc7bbfbd047cb8cb5edb79ecace6a46 /include
parent8f07f5376a21a57ce191e5548b1a30c9709994d3 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/dm/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/util.h b/include/dm/util.h
index 138893c9354..c634e470e7a 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, ...)
{