diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-10-05 17:36:05 +0300 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-10-09 08:00:35 +0300 |
commit | 9820c2f30c028f40d22fdc892799fd7088f23bc7 (patch) | |
tree | 9ed328a8b7c5eea57f72e9e08d046db1df822cbb /include | |
parent | 336d9dfc0a3b2245945a9fca9312c4266d186866 (diff) | |
download | u-boot-9820c2f30c028f40d22fdc892799fd7088f23bc7.tar.xz |
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')
-rw-r--r-- | include/efi_selftest.h | 4 |
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, |