ocf: fix ENV_WARN to use SPDK_WARNLOG instead of SPDK_NOTICELOG

Signed-off-by: Amir Haroush <amir.haroush@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
Change-Id: Ie5bbdb003573fdca6d56439f6a006749a29e9d6b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17076
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Amir Haroush 2023-03-07 11:36:44 +02:00 committed by Ben Walker
parent b05ec00f1a
commit a0d24145bf

View File

@ -64,12 +64,12 @@ typedef uint64_t sector_t;
#define ENV_WARN(cond, fmt, args...) ({ \
if (spdk_unlikely((uintptr_t)(cond))) \
SPDK_NOTICELOG("WARNING" fmt, ##args); \
SPDK_WARNLOG(fmt, ##args); \
})
#define ENV_WARN_ON(cond) ({ \
if (spdk_unlikely((uintptr_t)(cond))) \
SPDK_NOTICELOG("WARNING\n"); \
SPDK_WARNLOG("\n"); \
})
#define ENV_BUG() ({ \