From: Huawei Xie Date: Wed, 10 Feb 2016 16:12:39 +0000 (+0000) Subject: vmxnet3: remove redundant function names in log X-Git-Tag: spdx-start~7282 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7112356ef4c913931837a2ce6faf680889c7d7f0;p=dpdk.git vmxnet3: remove redundant function names in log Signed-off-by: Huawei Xie Acked-by: Yuanhan Liu Acked-by: Stephen Hemminger --- diff --git a/drivers/net/vmxnet3/vmxnet3_ethdev.c b/drivers/net/vmxnet3/vmxnet3_ethdev.c index c363bf60b4..f5834d613c 100644 --- a/drivers/net/vmxnet3/vmxnet3_ethdev.c +++ b/drivers/net/vmxnet3/vmxnet3_ethdev.c @@ -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; } diff --git a/drivers/net/vmxnet3/vmxnet3_rxtx.c b/drivers/net/vmxnet3/vmxnet3_rxtx.c index 8385478fcf..8683e629de 100644 --- a/drivers/net/vmxnet3/vmxnet3_rxtx.c +++ b/drivers/net/vmxnet3/vmxnet3_rxtx.c @@ -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;