diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-09-16 14:10:42 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-10-04 12:00:18 -0400 |
commit | 5a719f921871d852a83870b12158e00e8715647e (patch) | |
tree | 55f67a46b8c645d7bb904186c3d83dd98d16ea01 /include/common.h | |
parent | 9b643e312d528f291966c1f30b0d90bf3b1d43dc (diff) | |
download | u-boot-5a719f921871d852a83870b12158e00e8715647e.tar.gz |
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>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/common.h b/include/common.h index 4eb92298a2..7ea78bde83 100644 --- a/include/common.h +++ b/include/common.h @@ -90,11 +90,6 @@ void __assert_fail(const char *assertion, const char *file, unsigned line, ({ if (!(x) && _DEBUG) \ __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 #define BUG() do { \ printf("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \ |