]> xenbits.xensource.com Git - seabios.git/commitdiff
nvme: drive desc should not include the newline
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 26 May 2021 07:34:40 +0000 (09:34 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 31 May 2021 05:34:34 +0000 (07:34 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/nvme.c

index f64eba880a83e2bcb16fbf0427d1e5614c49968c..746e4682d318cfb7dab23c367c40352833cf3ac7 100644 (file)
@@ -297,11 +297,11 @@ nvme_probe_ns(struct nvme_ctrl *ctrl, u32 ns_idx, u8 mdts)
     ns->dma_buffer = zalloc_page_aligned(&ZoneHigh, NVME_PAGE_SIZE);
 
     char *desc = znprintf(MAXDESCSIZE, "NVMe NS %u: %llu MiB (%llu %u-byte "
-                          "blocks + %u-byte metadata)\n",
+                          "blocks + %u-byte metadata)",
                           ns_id, (ns->lba_count * ns->block_size) >> 20,
                           ns->lba_count, ns->block_size, ns->metadata_size);
 
-    dprintf(3, "%s", desc);
+    dprintf(3, "%s\n", desc);
     boot_add_hd(&ns->drive, desc, bootprio_find_pci_device(ctrl->pci));
 
 free_buffer: