[PATCH 01/19] common: Add a noisy assert()
sjg at google.com
sjg at google.com
Fri Jan 10 09:57:54 CET 2020
Some U-Boot code uses BUG_ON() and WARN_ON() macros. These use __FILE__
which can include quite a large path, depending on how U-Boot is built.
The existing assert() is only checked if DEBUG is enabled. Add a new one
which is always checked, and prints a (smaller) error in that case.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
include/log.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list