NVMf/vfio-user: handle LOG_INFO and LOG_WARNING log levels
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Change-Id: Ie5129fcda87c054605180d80bf038f4dce2d71c0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6523 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
53ff83c24e
commit
dfd7604687
@ -1341,8 +1341,12 @@ vfio_user_log(vfu_ctx_t *vfu_ctx, int level, char const *msg)
|
||||
|
||||
if (level >= LOG_DEBUG) {
|
||||
SPDK_DEBUGLOG(nvmf_vfio, "%s: %s\n", endpoint_id(endpoint), msg);
|
||||
} else if (level >= LOG_INFO) {
|
||||
SPDK_INFOLOG(nvmf_vfio, "%s: %s\n", endpoint_id(endpoint), msg);
|
||||
} else if (level >= LOG_NOTICE) {
|
||||
SPDK_NOTICELOG("%s: %s\n", endpoint_id(endpoint), msg);
|
||||
} else if (level >= LOG_WARNING) {
|
||||
SPDK_WARNLOG("%s: %s\n", endpoint_id(endpoint), msg);
|
||||
} else {
|
||||
SPDK_ERRLOG("%s: %s\n", endpoint_id(endpoint), msg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user