]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: Add missing newline to log_{err,warning}
authorPaulo Alcantara <pc@cjr.nz>
Fri, 6 Nov 2020 16:52:43 +0000 (13:52 -0300)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 14 Nov 2020 04:05:46 +0000 (05:05 +0100)
Add missing newline to log messages in efi_rng_register() otherwise
something like below would be shown

Scanning disk virtio-blk#31...
Found 2 disks
Missing RNG device for EFI_RNG_PROTOCOLNo EFI system partition

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_rng.c

index a8a87007b65fb4f98b101ae4c0bb00f9e494db99..8bdadad0a953a17e6c099bfae63cc48c915a5f2a 100644 (file)
@@ -166,13 +166,13 @@ efi_status_t efi_rng_register(void)
 
        ret = platform_get_rng_device(&dev);
        if (ret != EFI_SUCCESS) {
-               log_warning("Missing RNG device for EFI_RNG_PROTOCOL");
+               log_warning("Missing RNG device for EFI_RNG_PROTOCOL\n");
                return EFI_SUCCESS;
        }
        ret = efi_add_protocol(efi_root, &efi_guid_rng_protocol,
                               (void *)&efi_rng_protocol);
        if (ret != EFI_SUCCESS)
-               log_err("Cannot install EFI_RNG_PROTOCOL");
+               log_err("Cannot install EFI_RNG_PROTOCOL\n");
 
        return ret;
 }