diff options
author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2021-07-30 13:13:11 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-08-08 20:27:27 +0300 |
commit | b18b38f2ae3f54b906e0f2ab86789d9dd0110ed2 (patch) | |
tree | 8bb69dfc8bc7bbfbd047cb8cb5edb79ecace6a46 /drivers | |
parent | 8f07f5376a21a57ce191e5548b1a30c9709994d3 (diff) | |
download | u-boot-b18b38f2ae3f54b906e0f2ab86789d9dd0110ed2.tar.xz |
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 <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/util.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/core/util.c b/drivers/core/util.c index 91e93b0cf1..5be4ee79de 100644 --- a/drivers/core/util.c +++ b/drivers/core/util.c @@ -11,17 +11,6 @@ #include <linux/libfdt.h> #include <vsprintf.h> -#if CONFIG_IS_ENABLED(DM_WARN) -void dm_warn(const char *fmt, ...) -{ - va_list args; - - va_start(args, fmt); - vprintf(fmt, args); - va_end(args); -} -#endif - int list_count_items(struct list_head *head) { struct list_head *node; |