summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn@endlessos.org>2024-10-04 11:00:32 -0600
committerPeter Jones <pjones@redhat.com>2025-01-15 16:03:55 -0500
commitd197220e834e7915326c6a99e17bafe0dcfb3f77 (patch)
treee4a683b8d5fa3393eafe8411a8e2ce613eb7604c
parentd8c86b740667544acccad92c06eddbc858808a74 (diff)
downloadefi-boot-shim-d197220e834e7915326c6a99e17bafe0dcfb3f77.tar.gz
efi-boot-shim-d197220e834e7915326c6a99e17bafe0dcfb3f77.zip
Backport EFI_HTTP_ERROR status code
The define can be dropped when gnu-efi is updated to include de6f9259e8476495c78babbc25250a59de7f3942. Signed-off-by: Dan Nicholson <dbn@endlessos.org>
-rw-r--r--include/errors.h3
-rw-r--r--lib/console.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/errors.h b/include/errors.h
index 67d821e0..eab58453 100644
--- a/include/errors.h
+++ b/include/errors.h
@@ -9,5 +9,8 @@
#ifndef EFI_SECURITY_VIOLATION
#define EFI_SECURITY_VIOLATION EFIERR(26)
#endif
+#ifndef EFI_HTTP_ERROR
+#define EFI_HTTP_ERROR EFIERR(35)
+#endif
#endif /* SHIM_ERRORS_H */
diff --git a/lib/console.c b/lib/console.c
index a751f79d..f6038320 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -651,6 +651,7 @@ static struct {
{ EFI_PROTOCOL_ERROR, L"Protocol Error"},
{ EFI_INCOMPATIBLE_VERSION, L"Incompatible Version"},
{ EFI_SECURITY_VIOLATION, L"Security Violation"},
+ { EFI_HTTP_ERROR, L"HTTP Error"},
// warnings
{ EFI_WARN_UNKNOWN_GLYPH, L"Warning Unknown Glyph"},