]> git.baikalelectronics.ru Git - uboot.git/commit
common: Add a noisy assert()
authorSimon Glass <sjg@chromium.org>
Mon, 30 Dec 2019 04:19:10 +0000 (21:19 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:02:38 +0000 (16:02 -0700)
commit58ed8d531a69d78951c5a923d29175e6dbd730df
tree2a3d8bd57ffb38fe0c015ab0b86e758fab00e25c
parentba8ce73818c9900fd7681f0bf1d9928ca1381d43
common: Add a noisy assert()

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@chromium.org>
include/log.h