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

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