aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt2023-11-04 20:40:43 +0200
committerSimon Glass2023-11-14 20:04:01 -0700
commit2c61c0eb14289cbd94bff51c175f2410418d64d0 (patch)
tree8234b7e8584547b58f24bef37fca43037e329f70 /include
parentabf7004321c05333afb56ae230095f9bee55e924 (diff)
dm: Do not enable debug messages by default
CONFIG_DM_WARN has a text indicating that these messages should only provided when debugging. This implies that the setting must be default no. We should still create debug messages. Reported-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/util.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/dm/util.h b/include/dm/util.h
index 89206cc4966..95c3527a37c 100644
--- a/include/dm/util.h
+++ b/include/dm/util.h
@@ -11,9 +11,7 @@ struct dm_stats;
#if CONFIG_IS_ENABLED(DM_WARN)
#define dm_warn(fmt...) log(LOGC_DM, LOGL_WARNING, ##fmt)
#else
-static inline void dm_warn(const char *fmt, ...)
-{
-}
+#define dm_warn(fmt...) log(LOGC_DM, LOGL_DEBUG, ##fmt)
#endif
struct list_head;