Commit 3181a614 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme: replace stray printf with nvme_printf



This is the only place that was using printf directly in the NVMe
library.  Replace it with the official nvme_printf logging mechanism.

Change-Id: I689a7c0854b5e47eb357150f814e347cd44be79c
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 70044923
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -625,7 +625,7 @@ nvme_ctrlr_allocate_bars(struct nvme_controller *ctrlr)
	rc = nvme_pcicfg_map_bar(ctrlr->devhandle, 0, 0 /* writable */, &addr);
	ctrlr->regs = (volatile struct nvme_registers *)addr;
	if ((ctrlr->regs == NULL) || (rc != 0)) {
		printf("pci_device_map_range failed with error code %d\n", rc);
		nvme_printf(ctrlr, "pci_device_map_range failed with error code %d\n", rc);
		return -1;
	}