arrfab / rpms / shim

Forked from rpms/shim 4 years ago
Clone

Blame SOURCES/0059-Fix-our-in_protocol-printing.patch

e97c83
From eb72a4c3a1be9a10512886d2c95f9c015b77e15f Mon Sep 17 00:00:00 2001
e97c83
From: Peter Jones <pjones@redhat.com>
e97c83
Date: Fri, 19 Sep 2014 16:46:01 -0400
e97c83
Subject: [PATCH 59/74] Fix our "in_protocol" printing.
e97c83
e97c83
When I merged 4bfb13d and fixed the conflicts, I managed to make the
e97c83
in_protocol test exactly backwards, so that's why we don't currently see
e97c83
error messages.
e97c83
e97c83
Signed-off-by: Peter Jones <pjones@redhat.com>
e97c83
---
e97c83
 shim.c | 2 +-
e97c83
 1 file changed, 1 insertion(+), 1 deletion(-)
e97c83
e97c83
diff --git a/shim.c b/shim.c
e97c83
index caa05d8..7cd4182 100644
e97c83
--- a/shim.c
e97c83
+++ b/shim.c
e97c83
@@ -63,7 +63,7 @@ static UINT8 in_protocol;
e97c83
 
e97c83
 #define perror(fmt, ...) ({						\
e97c83
 		UINTN __perror_ret = 0;					\
e97c83
-		if (in_protocol)					\
e97c83
+		if (!in_protocol)					\
e97c83
 			__perror_ret = Print((fmt), ##__VA_ARGS__);	\
e97c83
 		__perror_ret;						\
e97c83
 	})
e97c83
-- 
e97c83
1.9.3
e97c83