efi_selftest: correct definition of efi_st_error
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 5 Oct 2017 14:36:05 +0000 (16:36 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Oct 2017 05:00:35 +0000 (07:00 +0200)
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>
include/efi_selftest.h

index beb662d4e1b84f90055fea86983b4484f2178e82..2f0992f06eee65ed62fea3d1b2c2c33cfaab0d46 100644 (file)
@@ -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,