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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
7004492324
commit
3181a61450
@ -625,7 +625,7 @@ nvme_ctrlr_allocate_bars(struct nvme_controller *ctrlr)
|
|||||||
rc = nvme_pcicfg_map_bar(ctrlr->devhandle, 0, 0 /* writable */, &addr);
|
rc = nvme_pcicfg_map_bar(ctrlr->devhandle, 0, 0 /* writable */, &addr);
|
||||||
ctrlr->regs = (volatile struct nvme_registers *)addr;
|
ctrlr->regs = (volatile struct nvme_registers *)addr;
|
||||||
if ((ctrlr->regs == NULL) || (rc != 0)) {
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user