diff --git a/include/osi_macsec.h b/include/osi_macsec.h index 441cc9e..8bb0f86 100644 --- a/include/osi_macsec.h +++ b/include/osi_macsec.h @@ -116,7 +116,7 @@ #define OSI_SA_LUT_MAX_INDEX OSI_TABLE_INDEX_MAX /** @} */ -#ifndef OSI_STRIPPED_LIB +#ifdef DEBUG_MACSEC /** * @addtogroup Debug buffer table CONFIG register helpers macros * @@ -141,7 +141,7 @@ #define OSI_RX_DBG_ICV_ERROR_EVT OSI_BIT(10) #define OSI_RX_DBG_CAPTURE_EVT OSI_BIT(11) /** @} */ -#endif /* !OSI_STRIPPED_LIB */ +#endif /* DEBUG_MACSEC*/ /** * @addtogroup AES ciphers diff --git a/osi/core/macsec.c b/osi/core/macsec.c index 50e7175..1078752 100644 --- a/osi/core/macsec.c +++ b/osi/core/macsec.c @@ -26,21 +26,7 @@ #include "../osi/common/common.h" #include "core_local.h" -#if defined(DEBUG_MACSEC) && defined(QNX_OS) -#define LOG(...) \ - { \ - slogf(0, 6, ##__VA_ARGS__); \ - } - -#elif defined(DEBUG_MACSEC) && defined(LINUX_OS) -#include -#define LOG(...) \ - { \ - pr_debug(__VA_ARGS__); \ - } -#else #define LOG(...) -#endif #ifdef DEBUG_MACSEC /** diff --git a/osi/core/macsec.h b/osi/core/macsec.h index 380413e..95ba892 100644 --- a/osi/core/macsec.h +++ b/osi/core/macsec.h @@ -453,10 +453,10 @@ #define MACSEC_RX_SCI_LUT_PREEMPT_INACTIVE OSI_BIT(9) /** @} */ -#ifndef OSI_STRIPPED_LIB +#ifdef DEBUG_MACSEC /* debug buffer data read/write length */ #define DBG_BUF_LEN 4U -#endif /* !OSI_STRIPPED_LIB */ +#endif /* DEBUG_MACSEC */ #ifdef MACSEC_KEY_PROGRAM #define INTEGER_LEN 4U #endif /* MACSEC_KEY_PROGRAM */ diff --git a/osi/dma/debug.c b/osi/dma/debug.c index 8c29763..fc14ef7 100644 --- a/osi/dma/debug.c +++ b/osi/dma/debug.c @@ -129,7 +129,9 @@ void reg_dump(struct osi_dma_priv_data *osi_dma) max_addr = 0x14EC; break; case OSI_MGBE_MAC_3_10: +#ifndef OSI_STRIPPED_LIB case OSI_MGBE_MAC_4_00: +#endif addr = 0x3100; max_addr = 0x35FC; break;