arrfab / rpms / shim

Forked from rpms/shim 4 years ago
Clone

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

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