[U-Boot] [PATCH 15/17] efi_selftest: correct definition of efi_st_error
Heinrich Schuchardt
xypron.glpk at gmx.de
Sun Sep 24 19:57:14 UTC 2017
Enclose definition in parantheses to allow using efi_st_error
like a void function.
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
include/efi_selftest.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index 76304a2b2a..7273a0f49a 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -20,8 +20,8 @@
* @... format string followed by fields to print
*/
#define efi_st_error(...) \
- efi_st_printf("%s(%u):\nERROR: ", __FILE__, __LINE__); \
- efi_st_printf(__VA_ARGS__) \
+ (efi_st_printf("%s(%u):\nERROR: ", __FILE__, __LINE__), \
+ efi_st_printf(__VA_ARGS__)) \
/*
* A test may be setup and executed at boottime,
--
2.14.1
More information about the U-Boot
mailing list