From 3768af833bb4a3313c42e869fd3176d30e1950c1 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 3 Aug 2018 07:59:29 +0000 Subject: [PATCH] loader.efi: clean up misleading noise from missing block devices If there are no block devices, there is no need to printout error (ENOENT). In case of netboot, our image path has no block device, no need to make noise about it. --- stand/efi/loader/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index d82f3c798d5..f5925e6ed44 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -545,8 +545,6 @@ find_currdev(EFI_LOADED_IMAGE *img, bool do_bootmgr, bool is_last, return (0); } } - } else { - printf("Can't find device by handle\n"); } /* @@ -862,9 +860,9 @@ main(int argc, CHAR16 *argv[]) * march through the device switch probing for things. */ i = efipart_inithandles(); - if (i != 0) { + if (i != 0 && i != ENOENT) { printf("efipart_inithandles failed with ERRNO %d, expect " - "failures", i); + "failures\n", i); } for (i = 0; devsw[i] != NULL; i++)