mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-02 09:30:43 +09:00
common.h: remove error()
This macro prevents us from using compiletime_error/assert defined in <linux/compiler.h>. Now we can remove it, then we will be able to import more BUILD_BUG macros from Linux. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
9b643e312d
commit
5a719f9218
@ -90,11 +90,6 @@ void __assert_fail(const char *assertion, const char *file, unsigned line,
|
|||||||
({ if (!(x) && _DEBUG) \
|
({ if (!(x) && _DEBUG) \
|
||||||
__assert_fail(#x, __FILE__, __LINE__, __func__); })
|
__assert_fail(#x, __FILE__, __LINE__, __func__); })
|
||||||
|
|
||||||
#define error(fmt, args...) do { \
|
|
||||||
printf("ERROR: " pr_fmt(fmt) "\nat %s:%d/%s()\n", \
|
|
||||||
##args, __FILE__, __LINE__, __func__); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
#ifndef BUG
|
#ifndef BUG
|
||||||
#define BUG() do { \
|
#define BUG() do { \
|
||||||
printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \
|
printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \
|
||||||
|
Loading…
Reference in New Issue
Block a user