diff --git a/include/spdk_internal/log.h b/include/spdk_internal/log.h index 0e3cc49ad..e77d94a6c 100644 --- a/include/spdk_internal/log.h +++ b/include/spdk_internal/log.h @@ -41,11 +41,4 @@ #include "spdk/log.h" -#define SPDK_ERRLOGDUMP(LABEL, BUF, LEN) \ - do { \ - if ((LEN)) { \ - spdk_log_dump(stderr, (LABEL), (BUF), (LEN)); \ - } \ - } while (0) - #endif /* SPDK_INTERNAL_LOG_H */ diff --git a/lib/iscsi/iscsi.c b/lib/iscsi/iscsi.c index 5f9c5b3e7..e8961bfe2 100644 --- a/lib/iscsi/iscsi.c +++ b/lib/iscsi/iscsi.c @@ -4322,7 +4322,7 @@ init_login_reject_response(struct spdk_iscsi_pdu *pdu, struct spdk_iscsi_pdu *rs static void iscsi_pdu_dump(struct spdk_iscsi_pdu *pdu) { - SPDK_ERRLOGDUMP("PDU", (uint8_t *)&pdu->bhs, ISCSI_BHS_LEN); + spdk_log_dump(stderr, "PDU", (uint8_t *)&pdu->bhs, ISCSI_BHS_LEN); } /* This function is used to refree the pdu when it is acknowledged */