[PATCH] Convert open-coded outputs to INFO

2 views
Skip to first unread message

Jan Kiszka

unread,
Apr 25, 2022, 4:14:17 AM4/25/22
to efibootguard-dev
From: Jan Kiszka <jan.k...@siemens.com>

INFO comes with no header or footer, thus can also be used for line
continuations. If we should even change the color of INFO, there outputs
will now be addressed as well.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils.c b/utils.c
index af0d739..0ae5a5e 100644
--- a/utils.c
+++ b/utils.c
@@ -165,9 +165,9 @@ EFI_STATUS get_volumes(VOLUME_DESC **volumes, UINTN *count)
get_volume_custom_label((*volumes)[rootCount].root);
INFO(L"Volume %d: ", rootCount);
if (IsOnBootMedium(devpath)) {
- PrintC(EFI_LIGHTGRAY, L"(On boot medium) ");
+ INFO(L"(On boot medium) ");
}
- PrintC(EFI_LIGHTGRAY, L"%s, LABEL=%s, CLABEL=%s\n",
+ INFO(L"%s, LABEL=%s, CLABEL=%s\n",
devpathstr, (*volumes)[rootCount].fslabel,
(*volumes)[rootCount].fscustomlabel);

--
2.34.1
Reply all
Reply to author
Forward
0 new messages