From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id 6D3141B6DB for ; Mon, 26 Nov 2018 08:27:34 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wAQ7RWOo013110; Mon, 26 Nov 2018 16:27:32 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id BFD8CEA8074; Mon, 26 Nov 2018 16:27:32 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id A8DBDEA81B4; Mon, 26 Nov 2018 16:27:32 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Mon, 26 Nov 2018 16:25:16 +0900 Message-Id: <1543217116-13662-3-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543217116-13662-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1543217116-13662-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 2/2] spp_vf: fix bug of not used variable X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2018 07:27:35 -0000 From: Yasufumi Ogawa `type_str` is only used in `ifdef` preprocessor directive and it is considered as not used variable and causes a compile error. This update is to fix this bug by reffering it outside `ifdef` directive. Signed-off-by: Yasufumi Ogawa --- src/vf/common/command_dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vf/common/command_dec.c b/src/vf/common/command_dec.c index 9f56eba..5b6ffcf 100644 --- a/src/vf/common/command_dec.c +++ b/src/vf/common/command_dec.c @@ -186,6 +186,7 @@ spp_convert_port_to_iface(const char *port, static enum spp_component_type spp_convert_component_type(const char *type_str) { + RTE_LOG(DEBUG, APP, "type_str is %s\n", type_str); #ifdef SPP_VF_MODULE if (strncmp(type_str, CORE_TYPE_CLASSIFIER_MAC_STR, strlen(CORE_TYPE_CLASSIFIER_MAC_STR)+1) == 0) { -- 2.7.4