Blame SOURCES/0007-httpboot-show-the-error-message-for-the-ChildHandle.patch

6a35ff
From c2f645c7cd9872585e7b4522b01c368bb545258b Mon Sep 17 00:00:00 2001
6a35ff
From: Gary Lin <glin@suse.com>
6a35ff
Date: Mon, 28 May 2018 18:03:39 +0800
6a35ff
Subject: [PATCH 07/62] httpboot: show the error message for the ChildHandle
6a35ff
6a35ff
Signed-off-by: Gary Lin <glin@suse.com>
6a35ff
Upstream-commit-id: 0fd3c7e8518
6a35ff
---
6a35ff
 httpboot.c | 4 +++-
6a35ff
 1 file changed, 3 insertions(+), 1 deletion(-)
6a35ff
6a35ff
diff --git a/httpboot.c b/httpboot.c
6a35ff
index 16dd6621f66..3622e85867c 100644
6a35ff
--- a/httpboot.c
6a35ff
+++ b/httpboot.c
6a35ff
@@ -696,8 +696,10 @@ http_fetch (EFI_HANDLE image, EFI_HANDLE device,
6a35ff
 	/* Set the handle to NULL to request a new handle */
6a35ff
 	http_handle = NULL;
6a35ff
 	efi_status = service->CreateChild(service, &http_handle);
6a35ff
-	if (EFI_ERROR(efi_status))
6a35ff
+	if (EFI_ERROR(efi_status)) {
6a35ff
+		perror(L"Failed to create the ChildHandle\n");
6a35ff
 		return efi_status;
6a35ff
+	}
6a35ff
 
6a35ff
 	/* Get the http protocol */
6a35ff
 	efi_status = gBS->HandleProtocol(http_handle, &EFI_HTTP_PROTOCOL_GUID,
6a35ff
-- 
6a35ff
2.26.2
6a35ff