From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by dpdk.org (Postfix) with ESMTP id 002A6C31A for ; Mon, 18 May 2015 19:40:14 +0200 (CEST) Received: by pabts4 with SMTP id ts4so160750549pab.3 for ; Mon, 18 May 2015 10:40:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EcP3Ma+9uBKyERutQ9+ETDoy/paKfi91BCyjuV8h1NE=; b=dnOk4qFYlUHhw88Xawu1+2CnYe0YrSjY1umaKt8+b0+yWxe/lPi3JK0CkB92JXORZU ZxyqT94HOh7770dW8BxcD1M2eTCjZdsiWt/cXyEyDDaWute2RefWJ0WybiTxAzVFVQd+ vWVCMCM3bLA6ROiPWS1VcuBFr3ew9VsDDbv9ke4VdGaTyYtOSPhXZpVn/mno1bQaqk5g Su29GZo7HgRrkciroJ0Y0o0gjnSeMAcMkbfMMB4zIZhYItPTtS9rrAZTOIAAW54Ph4A8 Q0GT9O6/4JOofhvkJ0Zl6pMqobFgT3PVkK+3jsQpgkBX+jieM0ldFu/fXAwSnKr8R+5O D+Iw== X-Gm-Message-State: ALoCoQmwi+ou4xsXDOZVLiy0gpGBkCmzBMZ89/QMqpWQ3VKAYufzKJ/e1LO2h5utf9E9NXtlVjhL X-Received: by 10.66.228.130 with SMTP id si2mr45913596pac.92.1431970814433; Mon, 18 May 2015 10:40:14 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id he9sm10655046pbc.7.2015.05.18.10.40.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 May 2015 10:40:13 -0700 (PDT) From: Stephen Hemminger To: cumming.lian@intel.com Date: Mon, 18 May 2015 10:40:12 -0700 Message-Id: <1431970814-25951-4-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431970814-25951-1-git-send-email-stephen@networkplumber.org> References: <1431970814-25951-1-git-send-email-stephen@networkplumber.org> Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 3/5] ethdev: fix errors if RTE_ETHDEV_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, 18 May 2015 17:40:15 -0000 The interrupt mode patches introduced some obvious errors if RTE_ETHDEV_DEBUG is defined. Signed-off-by: Stephen Hemminger --- lib/librte_ether/rte_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 7789338..cf9a79a 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -3348,13 +3348,13 @@ rte_eth_dev_rx_intr_ctl_q(uint8_t port_id, uint16_t queue_id, dev = &rte_eth_devices[port_id]; if (queue_id >= dev->data->nb_rx_queues) { - PMD_DEBUG_TRACE("Invalid RX queue_id=%d\n", rx_queue_id); + PMD_DEBUG_TRACE("Invalid RX queue_id=%d\n", queue_id); return -EINVAL; } intr_handle = &dev->pci_dev->intr_handle; if (!intr_handle->intr_vec || intr_handle->intr_vec[queue_id] < 0) { - PMD_DEBUG_TRACE("RX Intr vector unset on %d\n", rx_queue_id); + PMD_DEBUG_TRACE("RX Intr vector unset on %d\n", queue_id); return -EPERM; } -- 2.1.4