vmxnet3: remove redundant function names in log
authorHuawei Xie <huawei.xie@intel.com>
Wed, 10 Feb 2016 16:12:39 +0000 (16:12 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 18:05:46 +0000 (19:05 +0100)
Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/vmxnet3/vmxnet3_ethdev.c
drivers/net/vmxnet3/vmxnet3_rxtx.c

index c363bf6..f5834d6 100644 (file)
@@ -564,7 +564,7 @@ vmxnet3_dev_start(struct rte_eth_dev *dev)
        status = VMXNET3_READ_BAR1_REG(hw, VMXNET3_REG_CMD);
 
        if (status != 0) {
-               PMD_INIT_LOG(ERR, "Device activation in %s(): UNSUCCESSFUL", __func__);
+               PMD_INIT_LOG(ERR, "Device activation: UNSUCCESSFUL");
                return -1;
        }
 
@@ -577,7 +577,7 @@ vmxnet3_dev_start(struct rte_eth_dev *dev)
         */
        ret = vmxnet3_dev_rxtx_init(dev);
        if (ret != VMXNET3_SUCCESS) {
-               PMD_INIT_LOG(ERR, "Device receive init in %s: UNSUCCESSFUL", __func__);
+               PMD_INIT_LOG(ERR, "Device receive init: UNSUCCESSFUL");
                return ret;
        }
 
@@ -882,7 +882,7 @@ vmxnet3_process_events(struct vmxnet3_hw *hw)
        uint32_t events = hw->shared->ecr;
 
        if (!events) {
-               PMD_INIT_LOG(ERR, "No events to process in %s()", __func__);
+               PMD_INIT_LOG(ERR, "No events to process");
                return;
        }
 
index 8385478..8683e62 100644 (file)
@@ -456,7 +456,7 @@ vmxnet3_post_rx_bufs(vmxnet3_rx_queue_t *rxq, uint8_t ring_id)
                /* Allocate blank mbuf for the current Rx Descriptor */
                mbuf = rte_rxmbuf_alloc(rxq->mp);
                if (unlikely(mbuf == NULL)) {
-                       PMD_RX_LOG(ERR, "Error allocating mbuf in %s", __func__);
+                       PMD_RX_LOG(ERR, "Error allocating mbuf");
                        rxq->stats.rx_buf_alloc_failure++;
                        err = ENOMEM;
                        break;