mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
#undef CONFIG_DM_SPI
|
||||
#endif
|
||||
|
||||
#undef CONFIG_DM_WARN
|
||||
#undef CONFIG_DM_STDIO
|
||||
|
||||
#endif /* CONFIG_SPL_BUILD */
|
||||
|
||||
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user