From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 111C5212 for ; Thu, 2 Oct 2014 00:20:42 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by orsmga103.jf.intel.com with ESMTP; 01 Oct 2014 15:25:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,635,1406617200"; d="scan'208";a="481364629" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by azsmga001.ch.intel.com with ESMTP; 01 Oct 2014 15:27:27 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s91MRQ5Z017601 for ; Wed, 1 Oct 2014 23:27:26 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s91MRQIL007868 for ; Wed, 1 Oct 2014 23:27:26 +0100 Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id s91MRPk7007864 for dev@dpdk.org; Wed, 1 Oct 2014 23:27:25 +0100 From: Pablo de Lara To: dev@dpdk.org Date: Wed, 1 Oct 2014 23:27:25 +0100 Message-Id: <1412202445-7832-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] pmd: Fixed compilation error due to old RTE_DRV_LOG when bypass=y X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2014 22:20:43 -0000 RTE_DRV_LOG macro has changed, so now it requires at least 2 arguments, which have been added in ixgbe_bypass, specifying log type, to fix compilation error Signed-off-by: Pablo de Lara --- lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c | 10 +++++----- lib/librte_pmd_ixgbe/ixgbe_bypass.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c b/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c index 2623419..12cc01d 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c +++ b/lib/librte_pmd_ixgbe/ixgbe_82599_bypass.c @@ -63,7 +63,7 @@ ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) rs = IXGBE_SFF_SOFT_RS_SELECT_1G; break; default: - PMD_DRV_LOG("Invalid fixed module speed"); + PMD_DRV_LOG(ERR, "Invalid fixed module speed"); return; } @@ -72,7 +72,7 @@ ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) IXGBE_I2C_EEPROM_DEV_ADDR2, &eeprom_data); if (status) { - PMD_DRV_LOG("Failed to read Rx Rate Select RS0"); + PMD_DRV_LOG(ERR, "Failed to read Rx Rate Select RS0"); goto out; } @@ -82,7 +82,7 @@ ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) IXGBE_I2C_EEPROM_DEV_ADDR2, eeprom_data); if (status) { - PMD_DRV_LOG("Failed to write Rx Rate Select RS0"); + PMD_DRV_LOG(ERR, "Failed to write Rx Rate Select RS0"); goto out; } @@ -91,7 +91,7 @@ ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) IXGBE_I2C_EEPROM_DEV_ADDR2, &eeprom_data); if (status) { - PMD_DRV_LOG("Failed to read Rx Rate Select RS1"); + PMD_DRV_LOG(ERR, "Failed to read Rx Rate Select RS1"); goto out; } @@ -101,7 +101,7 @@ ixgbe_set_fiber_fixed_speed(struct ixgbe_hw *hw, ixgbe_link_speed speed) IXGBE_I2C_EEPROM_DEV_ADDR2, eeprom_data); if (status) { - PMD_DRV_LOG("Failed to write Rx Rate Select RS1"); + PMD_DRV_LOG(ERR, "Failed to write Rx Rate Select RS1"); goto out; } out: diff --git a/lib/librte_pmd_ixgbe/ixgbe_bypass.c b/lib/librte_pmd_ixgbe/ixgbe_bypass.c index 1a980b8..15203a4 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_bypass.c +++ b/lib/librte_pmd_ixgbe/ixgbe_bypass.c @@ -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) { - PMD_DRV_LOG("bypass function is not supported on that device"); + PMD_DRV_LOG(ERR, "bypass function is not supported on that device"); return; } -- 1.7.4.1