[PATCH] efi: payload: init: fix condition in warning message
Ahmad Fatoum
a.fatoum at pengutronix.de
Fri Mar 28 01:35:09 PDT 2025
The warning is supposed to point out a missing CONFIG_FS_EFI as possible
issue, but the condition was inverted, so it suggested enabling it when
it already was.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
efi/payload/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/efi/payload/init.c b/efi/payload/init.c
index 35cd8fc71661..3d9717b82540 100644
--- a/efi/payload/init.c
+++ b/efi/payload/init.c
@@ -371,7 +371,7 @@ static int efi_late_init(void)
if (!get_mounted_path("/boot")) {
pr_warn("boot device couldn't be determined%s\n",
- IS_ENABLED(CONFIG_FS_EFI) ? " without CONFIG_FS_EFI" : "");
+ IS_ENABLED(CONFIG_FS_EFI) ? "" : " without CONFIG_FS_EFI");
return 0;
}
--
2.39.5
More information about the barebox
mailing list