diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-10 17:16:49 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-21 08:13:17 +0100 |
commit | a94f468fa292c43be7ac9fe35adea5065fbc2a28 (patch) | |
tree | 19a70320b071289967b55ec4d4e2071431cb203a /include/dm/util.h | |
parent | 236f2bd30262f564c0bb71638105e525ddf47b9f (diff) |
dm: Disable dm_warn() in SPL
Since this function can use up quite a bit of space for its strings, disable
it by default in SPL. Use CONFIG_DM_WARN to re-enable it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/dm/util.h')
-rw-r--r-- | include/dm/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dm/util.h b/include/dm/util.h index 6ac3a38ef00..0cec17b52a4 100644 --- a/include/dm/util.h +++ b/include/dm/util.h @@ -7,7 +7,13 @@ #ifndef __DM_UTIL_H #define __DM_UTIL_H +#ifdef CONFIG_DM_WARN void dm_warn(const char *fmt, ...); +#else +static inline void dm_warn(const char *fmt, ...) +{ +} +#endif #ifdef DEBUG void dm_dbg(const char *fmt, ...); |