X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_pmd_ixgbe%2Fixgbe_bypass.c;h=1a980b83ac1de24b78bdc41a4ff18285024fac18;hb=aae1047905621aac57ce12f93e3fec9343cad499;hp=1d21dc07a275e1477130b6e14c2b0e6890518b4b;hpb=e9703de76c75fb6ce0c63593724228d945a90c46;p=dpdk.git diff --git a/lib/librte_pmd_ixgbe/ixgbe_bypass.c b/lib/librte_pmd_ixgbe/ixgbe_bypass.c index 1d21dc07a2..1a980b83ac 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_bypass.c +++ b/lib/librte_pmd_ixgbe/ixgbe_bypass.c @@ -40,20 +40,20 @@ #define BYPASS_STATUS_OFF_MASK 3 /* Macros to check for invlaid function pointers. */ -#define FUNC_PTR_OR_ERR_RET(func, retval) do { \ - if ((func) == NULL) { \ - DEBUGOUT("%s:%d function not supported\n", \ - __func__, __LINE__); \ - return (retval); \ - } \ +#define FUNC_PTR_OR_ERR_RET(func, retval) do { \ + if ((func) == NULL) { \ + PMD_DRV_LOG("%s:%d function not supported", \ + __func__, __LINE__); \ + return retval; \ + } \ } while(0) -#define FUNC_PTR_OR_RET(func) do { \ - if ((func) == NULL) { \ - DEBUGOUT("%s:%d function not supported\n", \ - __func__, __LINE__); \ - return; \ - } \ +#define FUNC_PTR_OR_RET(func) do { \ + if ((func) == NULL) { \ + PMD_DRV_LOG("%s:%d function not supported", \ + __func__, __LINE__); \ + return; \ + } \ } while(0) @@ -114,7 +114,7 @@ ixgbe_bypass_init(struct rte_eth_dev *dev) /* Only allow BYPASS ops on the first port */ if (hw->device_id != IXGBE_DEV_ID_82599_BYPASS || hw->bus.func != 0) { - DEBUGOUT("bypass function is not supported on that device\n"); + PMD_DRV_LOG("bypass function is not supported on that device"); return; }