Skip to contentSkip to conversation

efi_loader: Add missing newline to log_{err,warning}

PATCH New Paulo Alcantara 1 participant 1 message Nov 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efi_loader: Add missing newline to log_{err,warning}

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

---
 lib/efi_loader/efi_rng.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/efi_loader/efi_rng.c +2 -2
index a8a87007b65f..8bdadad0a953 100644
@@ -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;
 }
Signature · 1 line
2.29.1