From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 4533668AC for ; Mon, 1 Dec 2014 18:41:31 +0100 (CET) Received: by mail-wi0-f173.google.com with SMTP id r20so25403446wiv.12 for ; Mon, 01 Dec 2014 09:41:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=/LhVCUisIuMrAvLoAAAytEaXjcJun1lxh6J8mAKgF2o=; b=huIL/CiH7JiMzeUmY9vbQJkjNkvJZ6LT+puTa+JmVLYJxIs7iKWh9N7+9iijILJmhG 4yMu9D+b9MURn5yliuITaxkOChPzAaC4pNP3mMY8Ok+458sCG98iXk9UIqYiKMFAECdv u1Xse5GbfnMFFjRc+X4RsCAR4qKJi43tWAx26W51awqJPQuXiMlmSlL52TqaJTEk+9mx B4N287Pmetb2sgF64EUndACFjzRdvxVOQpQ8/0HLOM+Lk1K92DMejPDmSgVrpoMnb9hd QNr1GtN2X+X+LSBnLIEVKKe3eiJI0hExFW2IcVGpU12pzySHBLJpQp4tw6XQl6KeXw+y CHAw== X-Gm-Message-State: ALoCoQmEAz8CHZyemaWV/dwRgZzwezsP/uA3+I6I2PAKV2NFWHypLjcQYyTMttS+lpvjsxFkRtSY X-Received: by 10.181.13.179 with SMTP id ez19mr35333419wid.65.1417455691085; Mon, 01 Dec 2014 09:41:31 -0800 (PST) Received: from XPS13.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id k9sm15022064wjb.38.2014.12.01.09.41.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Dec 2014 09:41:30 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Mon, 1 Dec 2014 18:40:59 +0100 Message-Id: <1417455659-24854-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.1.3 Subject: [dpdk-dev] [PATCH] ixgbe: fix build with bypass and debug enabled 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: Mon, 01 Dec 2014 17:41:31 -0000 Since commit aae1047905621 ("use the right debug macro"), DEBUGOUT was replaced by PMD_DRV_LOG which requires at least 2 arguments. But the level argument was missing. Commit 7a10de5e27 fixed the logs but not the macros FUNC_PTR_OR_* which are not preprocessed if RTE_LIBRTE_IXGBE_DEBUG_DRIVER is disabled. Signed-off-by: Thomas Monjalon --- lib/librte_pmd_ixgbe/ixgbe_bypass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_bypass.c b/lib/librte_pmd_ixgbe/ixgbe_bypass.c index 15203a4..832f415 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_bypass.c +++ b/lib/librte_pmd_ixgbe/ixgbe_bypass.c @@ -42,7 +42,7 @@ /* Macros to check for invlaid function pointers. */ #define FUNC_PTR_OR_ERR_RET(func, retval) do { \ if ((func) == NULL) { \ - PMD_DRV_LOG("%s:%d function not supported", \ + PMD_DRV_LOG(ERR, "%s:%d function not supported", \ __func__, __LINE__); \ return retval; \ } \ @@ -50,7 +50,7 @@ #define FUNC_PTR_OR_RET(func) do { \ if ((func) == NULL) { \ - PMD_DRV_LOG("%s:%d function not supported", \ + PMD_DRV_LOG(ERR, "%s:%d function not supported", \ __func__, __LINE__); \ return; \ } \ -- 2.1.3