+6
−3
+1
−1
Loading
Especially SPDK_INFOLOG() should not call spdk_log_get_flag() function, instead rely on the log flag structure. This caused performance degradation in places that used SPDK_INFOLOG too extensively. Due to nature of the macros, in the meantime new debug log in iscsi was improperly named. This wasn't caught because of the macros reliance on spdk_log_get_flag(), where if name wasn't registered - no log was printed and no compilation occurred. Going back to using the structures, gives immediate feedback that there is no SPDK_LOG_ISCSI log flag. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I262eadb5aee29caa2a5cd719c82ca4963ea24576 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4712 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com>