summaryrefslogtreecommitdiff
path: root/include/efi_selftest.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-10-05 16:36:05 +0200
committerAlexander Graf <agraf@suse.de>2017-10-09 07:00:35 +0200
commit9820c2f30c028f40d22fdc892799fd7088f23bc7 (patch)
tree9ed328a8b7c5eea57f72e9e08d046db1df822cbb /include/efi_selftest.h
parent336d9dfc0a3b2245945a9fca9312c4266d186866 (diff)
downloadu-boot-9820c2f30c028f40d22fdc892799fd7088f23bc7.tar.gz
efi_selftest: correct definition of efi_st_error
Enclose definition in parantheses to allow using efi_st_error like a void function. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_selftest.h')
-rw-r--r--include/efi_selftest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index beb662d4e1..2f0992f06e 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -23,8 +23,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,