aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-03 11:31:26 -0600
committerSimon Glass <sjg@chromium.org>2020-10-29 14:42:17 -0600
commitabb9cd30b23858125ce015c1dffdae4d7895bae8 (patch)
treedfc71c65c860718f1654e3c67e3fa575a31e099b /include
parent1b27273e090590e7944a3f7a3b33ac9f90aae765 (diff)
downloadu-boot-abb9cd30b23858125ce015c1dffdae4d7895bae8.zip
u-boot-abb9cd30b23858125ce015c1dffdae4d7895bae8.tar.gz
u-boot-abb9cd30b23858125ce015c1dffdae4d7895bae8.tar.bz2
dm: core: Allow dm_warn() to be used in SPL
At present this option is disabled in SPL, meaning that warnings are not displayed. It is sometimes useful to see warnings in SPL for debugging purposes. Add a new Kconfig option to permit this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config_uncmd_spl.h1
-rw-r--r--include/dm/util.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/include/config_uncmd_spl.h b/include/config_uncmd_spl.h
index 31da621..af7e3e4 100644
--- a/include/config_uncmd_spl.h
+++ b/include/config_uncmd_spl.h
@@ -16,7 +16,6 @@
#undef CONFIG_DM_SPI
#endif
-#undef CONFIG_DM_WARN
#undef CONFIG_DM_STDIO
#endif /* CONFIG_SPL_BUILD */
diff --git a/include/dm/util.h b/include/dm/util.h
index 9773db6..01a0449 100644
--- a/include/dm/util.h
+++ b/include/dm/util.h
@@ -6,7 +6,7 @@
#ifndef __DM_UTIL_H
#define __DM_UTIL_H
-#ifdef CONFIG_DM_WARN
+#if CONFIG_IS_ENABLED(DM_WARN)
void dm_warn(const char *fmt, ...);
#else
static inline void dm_warn(const char *fmt, ...)