diff --git a/lib/nvme/nvme_vfio_user.c b/lib/nvme/nvme_vfio_user.c index 4a5fc5aebd..c674f9f5ed 100644 --- a/lib/nvme/nvme_vfio_user.c +++ b/lib/nvme/nvme_vfio_user.c @@ -320,7 +320,7 @@ nvme_vfio_ctrlr_scan(struct spdk_nvme_probe_ctx *probe_ctx, SPDK_ERRLOG("Error to access file %s\n", probe_ctx->trid.traddr); return ret; } - SPDK_NOTICELOG("Scan controller : %s\n", probe_ctx->trid.traddr); + SPDK_DEBUGLOG(nvme_vfio, "Scan controller : %s\n", probe_ctx->trid.traddr); return nvme_ctrlr_probe(&probe_ctx->trid, probe_ctx, NULL); } diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index 6689e7c6cf..7572548618 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -1565,7 +1565,7 @@ destroy_ctrlr(struct nvmf_vfio_user_ctrlr *ctrlr) { assert(ctrlr != NULL); - SPDK_NOTICELOG("destroy %s\n", ctrlr_id(ctrlr)); + SPDK_DEBUGLOG(nvmf_vfio, "destroy %s\n", ctrlr_id(ctrlr)); if (ctrlr->thread == spdk_get_thread()) { _destroy_ctrlr(ctrlr); @@ -1696,7 +1696,7 @@ nvmf_vfio_user_listen(struct spdk_nvmf_transport *transport, pthread_mutex_init(&endpoint->lock, NULL); TAILQ_INSERT_TAIL(&vu_transport->endpoints, endpoint, link); - SPDK_NOTICELOG("%s: doorbells %p\n", uuid, endpoint->doorbells); + SPDK_DEBUGLOG(nvmf_vfio, "%s: doorbells %p\n", uuid, endpoint->doorbells); out: if (err != 0) { diff --git a/lib/vfio_user/vfio_user.c b/lib/vfio_user/vfio_user.c index 9d9ccb0a97..7010f4859f 100644 --- a/lib/vfio_user/vfio_user.c +++ b/lib/vfio_user/vfio_user.c @@ -266,8 +266,8 @@ vfio_user_check_version(struct vfio_device *dev) return ret; } - SPDK_NOTICELOG("%s Negotiate version %u.%u\n", vfio_user_message_str[VFIO_USER_VERSION], - version->major, version->minor); + SPDK_DEBUGLOG(vfio_user, "%s Negotiate version %u.%u\n", vfio_user_message_str[VFIO_USER_VERSION], + version->major, version->minor); return 0; } diff --git a/lib/vfio_user/vfio_user_pci.c b/lib/vfio_user/vfio_user_pci.c index b7838c48f9..6e3b2c34e8 100644 --- a/lib/vfio_user/vfio_user_pci.c +++ b/lib/vfio_user/vfio_user_pci.c @@ -256,11 +256,11 @@ vfio_device_setup_sparse_mmaps(struct vfio_device *device, int index, return -EIO; } } else { - SPDK_NOTICELOG("No valid fd, skip mmap for bar %d region %u\n", index, i); + SPDK_DEBUGLOG(vfio_pci, "No valid fd, skip mmap for bar %d region %u\n", index, i); } - SPDK_NOTICELOG("Sparse region %u, Size 0x%llx, Offset 0x%llx, Map addr %p\n", - i, sparse->areas[i].size, sparse->areas[i].offset, - region->mmaps[j].mem); + SPDK_DEBUGLOG(vfio_pci, "Sparse region %u, Size 0x%llx, Offset 0x%llx, Map addr %p\n", + i, sparse->areas[i].size, sparse->areas[i].offset, + region->mmaps[j].mem); j++; } } @@ -406,7 +406,7 @@ spdk_vfio_user_setup(const char *path) goto cleanup; } - SPDK_NOTICELOG("Device %s, Path %s Setup Successfully\n", device->name, device->path); + SPDK_DEBUGLOG(vfio_pci, "Device %s, Path %s Setup Successfully\n", device->name, device->path); TAILQ_INSERT_TAIL(&g_vfio_devices, device, link); return device; @@ -420,7 +420,7 @@ cleanup: void spdk_vfio_user_release(struct vfio_device *dev) { - SPDK_NOTICELOG("Release file %s\n", dev->path); + SPDK_DEBUGLOG(vfio_pci, "Release file %s\n", dev->path); vfio_device_unmap_bars(dev); if (dev->map) {