summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2014-09-21 16:25:27 -0400
committerPeter Jones <pjones@redhat.com>2014-09-21 16:25:27 -0400
commit631225fb3319c7011a840986a73bcc2afef5adc0 (patch)
treeb9f57b27175cb7dca74bcbf29cd44ba5a26e71d0 /shim.c
parent213e29e25b771fea7146c7db2203759bc8c75e5a (diff)
downloadefi-boot-shim-631225fb3319c7011a840986a73bcc2afef5adc0.tar.gz
efi-boot-shim-631225fb3319c7011a840986a73bcc2afef5adc0.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; \
})