summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2014-09-19 16:46:01 -0400
committerPeter Jones <pjones@redhat.com>2014-09-21 16:25:27 -0400
commiteb72a4c3a1be9a10512886d2c95f9c015b77e15f (patch)
treeb9f57b27175cb7dca74bcbf29cd44ba5a26e71d0 /shim.c
parent3d1cdbc4e3815dd8e489b8a9c95e945b67d3a045 (diff)
downloadefi-boot-shim-eb72a4c3a1be9a10512886d2c95f9c015b77e15f.tar.gz
efi-boot-shim-eb72a4c3a1be9a10512886d2c95f9c015b77e15f.zip
Fix our "in_protocol" printing.
When I merged 4bfb13d and fixed the conflicts, I managed to make the in_protocol test exactly backwards, so that's why we don't currently see error messages. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index caa05d89..7cd41821 100644
--- a/shim.c
+++ b/shim.c
@@ -63,7 +63,7 @@ static UINT8 in_protocol;
#define perror(fmt, ...) ({ \
UINTN __perror_ret = 0; \
- if (in_protocol) \
+ if (!in_protocol) \
__perror_ret = Print((fmt), ##__VA_ARGS__); \
__perror_ret; \
})