Blob Blame History Raw
From eb72a4c3a1be9a10512886d2c95f9c015b77e15f Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Fri, 19 Sep 2014 16:46:01 -0400
Subject: [PATCH 59/74] 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>
---
 shim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shim.c b/shim.c
index caa05d8..7cd4182 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;						\
 	})
-- 
1.9.3