mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-23 16:41:53 +00:00
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>
This commit is contained in:
parent
3d1cdbc4e3
commit
eb72a4c3a1
2
shim.c
2
shim.c
@ -63,7 +63,7 @@ static UINT8 in_protocol;
|
|||||||
|
|
||||||
#define perror(fmt, ...) ({ \
|
#define perror(fmt, ...) ({ \
|
||||||
UINTN __perror_ret = 0; \
|
UINTN __perror_ret = 0; \
|
||||||
if (in_protocol) \
|
if (!in_protocol) \
|
||||||
__perror_ret = Print((fmt), ##__VA_ARGS__); \
|
__perror_ret = Print((fmt), ##__VA_ARGS__); \
|
||||||
__perror_ret; \
|
__perror_ret; \
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user