Show a patch.

GET /api/patches/282/
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 282,
    "url": "https://patches.dpdk.org/api/patches/282/",
    "web_url": "https://patches.dpdk.org/patch/282/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk"
    },
    "msgid": "<1409567080-27083-10-git-send-email-david.marchand@6wind.com>",
    "date": "2014-09-01T10:24:32",
    "name": "[dpdk-dev,v2,09/17] i40e: clean log messages",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "fb3e733015d57c27f6181a4e3f0a90e0a3060734",
    "submitter": {
        "id": 3,
        "url": "https://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/282/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/282/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/282/checks/",
    "tags": {},
    "headers": {
        "X-List-Received-Date": "Mon, 01 Sep 2014 10:20:38 -0000",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailman-Version": "2.1.15",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=cd7XIC7ZphIB/7x0b/nopdSGq6zq6bO2btlyrYhfCRI=;\n\tb=h+7iGgPNvkjB+qCRdsOsJNBO4JY3264DFk76ii1xuVRx8JUUtS6YBN5YJyekNHRaWl\n\t0kxab641jx9c9KQwXkBw6yMWAf+K/WggKxM1xOFGgLMiywS3FTgGhP72b6uyLiFKhrLU\n\tKr8HqLoscIR+b2/23JPOnmmY8OByfk526XabZQX2s04CG/nNdPMijD1IUj2sMGdCE6LL\n\ty+hrTa5d/9YcNa9Qe2+ypPcE/j7PPYv3iJLw3AAw3PPthQxyrmNAzg/rq/grY6vhlyPI\n\tQTBNPVYiLYG5kjh38BjA3W2k71N9n8jshlbqEPUxrHe71Ng8tv7gHp1ES05u1j63gfMt\n\t8keg==",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-Received": "by 10.194.75.138 with SMTP id c10mr31690690wjw.9.1409567104822; \n\tMon, 01 Sep 2014 03:25:04 -0700 (PDT)",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Precedence": "list",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "From": "David Marchand <david.marchand@6wind.com>",
        "Message-Id": "<1409567080-27083-10-git-send-email-david.marchand@6wind.com>",
        "Date": "Mon,  1 Sep 2014 12:24:32 +0200",
        "To": "dev@dpdk.org",
        "References": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "In-Reply-To": "<1409567080-27083-1-git-send-email-david.marchand@6wind.com>",
        "X-Mailer": "git-send-email 1.7.10.4",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<david.marchand@6wind.com>",
        "X-Gm-Message-State": "ALoCoQm8Zl0FZ36HPUIc8nBb9eHzmmexXRc0AUhsVr+HEezRbtrCOUBINB9ltbz5r0xGgtgK7yqn",
        "Received": [
            "from mail-wi0-f173.google.com (mail-wi0-f173.google.com\n\t[209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 03CEBB3BF\n\tfor <dev@dpdk.org>; Mon,  1 Sep 2014 12:20:38 +0200 (CEST)",
            "by mail-wi0-f173.google.com with SMTP id cc10so5426831wib.12\n\tfor <dev@dpdk.org>; Mon, 01 Sep 2014 03:25:04 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tlm18sm24287018wic.22.2014.09.01.03.25.01 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 01 Sep 2014 03:25:04 -0700 (PDT)"
        ],
        "Subject": "[dpdk-dev] [PATCH v2 09/17] i40e: clean log messages"
    },
    "content": "Clean log messages:\n- remove leading \\n in some messages,\n- remove trailing \\n in some messages,\n- split multi lines messages,\n- replace some PMD_INIT_LOG(DEBUG, \"some_func\") with PMD_INIT_FUNC_TRACE().\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_pmd_i40e/i40e_ethdev.c    |  418 +++++++++++++++++-----------------\n lib/librte_pmd_i40e/i40e_ethdev_vf.c |  166 +++++++-------\n lib/librte_pmd_i40e/i40e_pf.c        |   75 +++---\n lib/librte_pmd_i40e/i40e_rxtx.c      |  118 +++++-----\n 4 files changed, 385 insertions(+), 392 deletions(-)",
    "diff": "diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 352beb1..1a5b55d 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -371,7 +371,7 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \thw->hw_addr = (uint8_t *)(pci_dev->mem_resource[0].addr);\n \tif (!hw->hw_addr) {\n \t\tPMD_INIT_LOG(ERR, \"Hardware is not available, \"\n-\t\t\t\t\t\"as address is NULL\\n\");\n+\t\t\t     \"as address is NULL\");\n \t\treturn -ENODEV;\n \t}\n \n@@ -395,7 +395,8 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t/* Initialize the shared code (base driver) */\n \tret = i40e_init_shared_code(hw);\n \tif (ret) {\n-\t\tPMD_INIT_LOG(ERR, \"Failed to init shared code (base driver): %d\", ret);\n+\t\tPMD_INIT_LOG(ERR, \"Failed to init shared code (base driver):\"\n+\t\t\t     \"%d\", ret);\n \t\treturn ret;\n \t}\n \n@@ -406,8 +407,7 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t\tPMD_INIT_LOG(ERR, \"Failed to init adminq: %d\", ret);\n \t\treturn -EIO;\n \t}\n-\tPMD_INIT_LOG(INFO, \"FW %d.%d API %d.%d NVM \"\n-\t\t\t\"%02d.%02d.%02d eetrack %04x\\n\",\n+\tPMD_INIT_LOG(INFO, \"FW %d.%d API %d.%d NVM %02d.%02d.%02d eetrack %04x\",\n \t\t\thw->aq.fw_maj_ver, hw->aq.fw_min_ver,\n \t\t\thw->aq.api_maj_ver, hw->aq.api_min_ver,\n \t\t\t((hw->nvm.version >> 12) & 0xf),\n@@ -417,7 +417,7 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t/* Disable LLDP */\n \tret = i40e_aq_stop_lldp(hw, true, NULL);\n \tif (ret != I40E_SUCCESS) /* Its failure can be ignored */\n-\t\tPMD_INIT_LOG(INFO, \"Failed to stop lldp\\n\");\n+\t\tPMD_INIT_LOG(INFO, \"Failed to stop lldp\");\n \n \t/* Clear PXE mode */\n \ti40e_clear_pxe_mode(hw);\n@@ -439,13 +439,13 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t/* Initialize the queue management */\n \tret = i40e_res_pool_init(&pf->qp_pool, 0, hw->func_caps.num_tx_qp);\n \tif (ret < 0) {\n-\t\tPMD_INIT_LOG(ERR, \"Failed to init queue pool\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"Failed to init queue pool\");\n \t\tgoto err_qp_pool_init;\n \t}\n \tret = i40e_res_pool_init(&pf->msix_pool, 1,\n \t\t\t\thw->func_caps.num_msix_vectors - 1);\n \tif (ret < 0) {\n-\t\tPMD_INIT_LOG(ERR, \"Failed to init MSIX pool\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"Failed to init MSIX pool\");\n \t\tgoto err_msix_pool_init;\n \t}\n \n@@ -499,8 +499,8 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t/* Should be after VSI initialized */\n \tdev->data->mac_addrs = rte_zmalloc(\"i40e\", len, 0);\n \tif (!dev->data->mac_addrs) {\n-\t\tPMD_INIT_LOG(ERR, \"Failed to allocated memory \"\n-\t\t\t\t\t\"for storing mac address\");\n+\t\tPMD_INIT_LOG(ERR, \"Failed to allocated memory for storing \"\n+\t\t\t     \"mac address\");\n \t\tgoto err_get_mac_addr;\n \t}\n \tether_addr_copy((struct ether_addr *)hw->mac.perm_addr,\n@@ -723,9 +723,9 @@ i40e_phy_conf_link(struct i40e_hw *hw, uint8_t abilities, uint8_t force_speed)\n \tphy_conf.eeer = phy_ab.eeer_val;\n \tphy_conf.low_power_ctrl = phy_ab.d3_lpan;\n \n-\tPMD_DRV_LOG(DEBUG, \"\\n\\tCurrent: abilities %x, link_speed %x\\n\"\n-\t\t    \"\\tConfig:  abilities %x, link_speed %x\",\n-\t\t    phy_ab.abilities, phy_ab.link_speed,\n+\tPMD_DRV_LOG(DEBUG, \"\\tCurrent: abilities %x, link_speed %x\",\n+\t\t    phy_ab.abilities, phy_ab.link_speed);\n+\tPMD_DRV_LOG(DEBUG, \"\\tConfig:  abilities %x, link_speed %x\",\n \t\t    phy_conf.abilities, phy_conf.link_speed);\n \n \tstatus = i40e_aq_set_phy_config(hw, &phy_conf, NULL);\n@@ -763,7 +763,7 @@ i40e_dev_start(struct rte_eth_dev *dev)\n \n \tif ((dev->data->dev_conf.link_duplex != ETH_LINK_AUTONEG_DUPLEX) &&\n \t\t(dev->data->dev_conf.link_duplex != ETH_LINK_FULL_DUPLEX)) {\n-\t\tPMD_INIT_LOG(ERR, \"Invalid link_duplex (%hu) for port %hhu\\n\",\n+\t\tPMD_INIT_LOG(ERR, \"Invalid link_duplex (%hu) for port %hhu\",\n \t\t\t\tdev->data->dev_conf.link_duplex,\n \t\t\t\tdev->data->port_id);\n \t\treturn -EINVAL;\n@@ -772,7 +772,7 @@ i40e_dev_start(struct rte_eth_dev *dev)\n \t/* Initialize VSI */\n \tret = i40e_vsi_init(vsi);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to init VSI\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to init VSI\");\n \t\tgoto err_up;\n \t}\n \n@@ -783,7 +783,7 @@ i40e_dev_start(struct rte_eth_dev *dev)\n \t/* Enable all queues which have been configured */\n \tret = i40e_vsi_switch_queues(vsi, TRUE);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to enable VSI\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable VSI\");\n \t\tgoto err_up;\n \t}\n \n@@ -791,13 +791,13 @@ i40e_dev_start(struct rte_eth_dev *dev)\n \tif ((vsi->type == I40E_VSI_MAIN) || (vsi->type == I40E_VSI_VMDQ2)) {\n \t\tret = i40e_aq_set_vsi_broadcast(hw, vsi->seid, true, NULL);\n \t\tif (ret != I40E_SUCCESS)\n-\t\t\tPMD_DRV_LOG(INFO, \"fail to set vsi broadcast\\n\");\n+\t\t\tPMD_DRV_LOG(INFO, \"fail to set vsi broadcast\");\n \t}\n \n \t/* Apply link configure */\n \tret = i40e_apply_link_speed(dev);\n \tif (I40E_SUCCESS != ret) {\n-\t\tPMD_DRV_LOG(ERR, \"Fail to apply link setting\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Fail to apply link setting\");\n \t\tgoto err_up;\n \t}\n \n@@ -872,12 +872,12 @@ i40e_dev_promiscuous_enable(struct rte_eth_dev *dev)\n \tstatus = i40e_aq_set_vsi_unicast_promiscuous(hw, vsi->seid,\n \t\t\t\t\t\t\ttrue, NULL);\n \tif (status != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to enable unicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable unicast promiscuous\");\n \n \tstatus = i40e_aq_set_vsi_multicast_promiscuous(hw, vsi->seid,\n \t\t\t\t\t\t\tTRUE, NULL);\n \tif (status != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to enable multicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable multicast promiscuous\");\n \n }\n \n@@ -892,12 +892,12 @@ i40e_dev_promiscuous_disable(struct rte_eth_dev *dev)\n \tstatus = i40e_aq_set_vsi_unicast_promiscuous(hw, vsi->seid,\n \t\t\t\t\t\t\tfalse, NULL);\n \tif (status != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to disable unicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to disable unicast promiscuous\");\n \n \tstatus = i40e_aq_set_vsi_multicast_promiscuous(hw, vsi->seid,\n \t\t\t\t\t\t\tfalse, NULL);\n \tif (status != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to disable multicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to disable multicast promiscuous\");\n }\n \n static void\n@@ -910,7 +910,7 @@ i40e_dev_allmulticast_enable(struct rte_eth_dev *dev)\n \n \tret = i40e_aq_set_vsi_multicast_promiscuous(hw, vsi->seid, TRUE, NULL);\n \tif (ret != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to enable multicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to enable multicast promiscuous\");\n }\n \n static void\n@@ -927,7 +927,7 @@ i40e_dev_allmulticast_disable(struct rte_eth_dev *dev)\n \tret = i40e_aq_set_vsi_multicast_promiscuous(hw,\n \t\t\t\tvsi->seid, FALSE, NULL);\n \tif (ret != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to disable multicast promiscuous\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to disable multicast promiscuous\");\n }\n \n /*\n@@ -972,7 +972,7 @@ i40e_dev_link_update(struct rte_eth_dev *dev,\n \tif (status != I40E_SUCCESS) {\n \t\tlink.link_speed = ETH_LINK_SPEED_100;\n \t\tlink.link_duplex = ETH_LINK_FULL_DUPLEX;\n-\t\tPMD_DRV_LOG(ERR, \"Failed to get link info\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to get link info\");\n \t\tgoto out;\n \t}\n \n@@ -1059,22 +1059,22 @@ i40e_update_vsi_stats(struct i40e_vsi *vsi)\n \t\t\t    &oes->tx_errors, &nes->tx_errors);\n \tvsi->offset_loaded = true;\n \n-\tPMD_DRV_LOG(DEBUG, \"***************** VSI[%u] stats start *******************\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"***************** VSI[%u] stats start *******************\",\n \t\t    vsi->vsi_id);\n-\tPMD_DRV_LOG(DEBUG, \"rx_bytes:            %lu\\n\", nes->rx_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"rx_unicast:          %lu\\n\", nes->rx_unicast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_multicast:        %lu\\n\", nes->rx_multicast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_broadcast:        %lu\\n\", nes->rx_broadcast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_discards:         %lu\\n\", nes->rx_discards);\n-\tPMD_DRV_LOG(DEBUG, \"rx_unknown_protocol: %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"rx_bytes:            %lu\", nes->rx_bytes);\n+\tPMD_DRV_LOG(DEBUG, \"rx_unicast:          %lu\", nes->rx_unicast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_multicast:        %lu\", nes->rx_multicast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_broadcast:        %lu\", nes->rx_broadcast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_discards:         %lu\", nes->rx_discards);\n+\tPMD_DRV_LOG(DEBUG, \"rx_unknown_protocol: %lu\",\n \t\t    nes->rx_unknown_protocol);\n-\tPMD_DRV_LOG(DEBUG, \"tx_bytes:            %lu\\n\", nes->tx_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"tx_unicast:          %lu\\n\", nes->tx_unicast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_multicast:        %lu\\n\", nes->tx_multicast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_broadcast:        %lu\\n\", nes->tx_broadcast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_discards:         %lu\\n\", nes->tx_discards);\n-\tPMD_DRV_LOG(DEBUG, \"tx_errors:           %lu\\n\", nes->tx_errors);\n-\tPMD_DRV_LOG(DEBUG, \"***************** VSI[%u] stats end *******************\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"tx_bytes:            %lu\", nes->tx_bytes);\n+\tPMD_DRV_LOG(DEBUG, \"tx_unicast:          %lu\", nes->tx_unicast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_multicast:        %lu\", nes->tx_multicast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_broadcast:        %lu\", nes->tx_broadcast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_discards:         %lu\", nes->tx_discards);\n+\tPMD_DRV_LOG(DEBUG, \"tx_errors:           %lu\", nes->tx_errors);\n+\tPMD_DRV_LOG(DEBUG, \"***************** VSI[%u] stats end *******************\",\n \t\t    vsi->vsi_id);\n }\n \n@@ -1276,74 +1276,74 @@ i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \tif (pf->main_vsi)\n \t\ti40e_update_vsi_stats(pf->main_vsi);\n \n-\tPMD_DRV_LOG(DEBUG, \"***************** PF stats start *******************\\n\");\n-\tPMD_DRV_LOG(DEBUG, \"rx_bytes:            %lu\\n\", ns->eth.rx_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"rx_unicast:          %lu\\n\", ns->eth.rx_unicast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_multicast:        %lu\\n\", ns->eth.rx_multicast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_broadcast:        %lu\\n\", ns->eth.rx_broadcast);\n-\tPMD_DRV_LOG(DEBUG, \"rx_discards:         %lu\\n\", ns->eth.rx_discards);\n-\tPMD_DRV_LOG(DEBUG, \"rx_unknown_protocol: %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"***************** PF stats start *******************\");\n+\tPMD_DRV_LOG(DEBUG, \"rx_bytes:            %lu\", ns->eth.rx_bytes);\n+\tPMD_DRV_LOG(DEBUG, \"rx_unicast:          %lu\", ns->eth.rx_unicast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_multicast:        %lu\", ns->eth.rx_multicast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_broadcast:        %lu\", ns->eth.rx_broadcast);\n+\tPMD_DRV_LOG(DEBUG, \"rx_discards:         %lu\", ns->eth.rx_discards);\n+\tPMD_DRV_LOG(DEBUG, \"rx_unknown_protocol: %lu\",\n \t\t    ns->eth.rx_unknown_protocol);\n-\tPMD_DRV_LOG(DEBUG, \"tx_bytes:            %lu\\n\", ns->eth.tx_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"tx_unicast:          %lu\\n\", ns->eth.tx_unicast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_multicast:        %lu\\n\", ns->eth.tx_multicast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_broadcast:        %lu\\n\", ns->eth.tx_broadcast);\n-\tPMD_DRV_LOG(DEBUG, \"tx_discards:         %lu\\n\", ns->eth.tx_discards);\n-\tPMD_DRV_LOG(DEBUG, \"tx_errors:           %lu\\n\", ns->eth.tx_errors);\n-\n-\tPMD_DRV_LOG(DEBUG, \"tx_dropped_link_down:     %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"tx_bytes:            %lu\", ns->eth.tx_bytes);\n+\tPMD_DRV_LOG(DEBUG, \"tx_unicast:          %lu\", ns->eth.tx_unicast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_multicast:        %lu\", ns->eth.tx_multicast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_broadcast:        %lu\", ns->eth.tx_broadcast);\n+\tPMD_DRV_LOG(DEBUG, \"tx_discards:         %lu\", ns->eth.tx_discards);\n+\tPMD_DRV_LOG(DEBUG, \"tx_errors:           %lu\", ns->eth.tx_errors);\n+\n+\tPMD_DRV_LOG(DEBUG, \"tx_dropped_link_down:     %lu\",\n \t\t    ns->tx_dropped_link_down);\n-\tPMD_DRV_LOG(DEBUG, \"crc_errors:               %lu\\n\", ns->crc_errors);\n-\tPMD_DRV_LOG(DEBUG, \"illegal_bytes:            %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"crc_errors:               %lu\", ns->crc_errors);\n+\tPMD_DRV_LOG(DEBUG, \"illegal_bytes:            %lu\",\n \t\t    ns->illegal_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"error_bytes:              %lu\\n\", ns->error_bytes);\n-\tPMD_DRV_LOG(DEBUG, \"mac_local_faults:         %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"error_bytes:              %lu\", ns->error_bytes);\n+\tPMD_DRV_LOG(DEBUG, \"mac_local_faults:         %lu\",\n \t\t    ns->mac_local_faults);\n-\tPMD_DRV_LOG(DEBUG, \"mac_remote_faults:        %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"mac_remote_faults:        %lu\",\n \t\t    ns->mac_remote_faults);\n-\tPMD_DRV_LOG(DEBUG, \"rx_length_errors:         %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"rx_length_errors:         %lu\",\n \t\t    ns->rx_length_errors);\n-\tPMD_DRV_LOG(DEBUG, \"link_xon_rx:              %lu\\n\", ns->link_xon_rx);\n-\tPMD_DRV_LOG(DEBUG, \"link_xoff_rx:             %lu\\n\", ns->link_xoff_rx);\n+\tPMD_DRV_LOG(DEBUG, \"link_xon_rx:              %lu\", ns->link_xon_rx);\n+\tPMD_DRV_LOG(DEBUG, \"link_xoff_rx:             %lu\", ns->link_xoff_rx);\n \tfor (i = 0; i < 8; i++) {\n-\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_rx[%d]:      %lu\\n\",\n+\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_rx[%d]:      %lu\",\n \t\t\t\ti, ns->priority_xon_rx[i]);\n-\t\tPMD_DRV_LOG(DEBUG, \"priority_xoff_rx[%d]:     %lu\\n\",\n+\t\tPMD_DRV_LOG(DEBUG, \"priority_xoff_rx[%d]:     %lu\",\n \t\t\t\ti, ns->priority_xoff_rx[i]);\n \t}\n-\tPMD_DRV_LOG(DEBUG, \"link_xon_tx:              %lu\\n\", ns->link_xon_tx);\n-\tPMD_DRV_LOG(DEBUG, \"link_xoff_tx:             %lu\\n\", ns->link_xoff_tx);\n+\tPMD_DRV_LOG(DEBUG, \"link_xon_tx:              %lu\", ns->link_xon_tx);\n+\tPMD_DRV_LOG(DEBUG, \"link_xoff_tx:             %lu\", ns->link_xoff_tx);\n \tfor (i = 0; i < 8; i++) {\n-\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_tx[%d]:      %lu\\n\",\n+\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_tx[%d]:      %lu\",\n \t\t\t\ti, ns->priority_xon_tx[i]);\n-\t\tPMD_DRV_LOG(DEBUG, \"priority_xoff_tx[%d]:     %lu\\n\",\n+\t\tPMD_DRV_LOG(DEBUG, \"priority_xoff_tx[%d]:     %lu\",\n \t\t\t\ti, ns->priority_xoff_tx[i]);\n-\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_2_xoff[%d]:  %lu\\n\",\n+\t\tPMD_DRV_LOG(DEBUG, \"priority_xon_2_xoff[%d]:  %lu\",\n \t\t\t\ti, ns->priority_xon_2_xoff[i]);\n \t}\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_64:               %lu\\n\", ns->rx_size_64);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_127:              %lu\\n\", ns->rx_size_127);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_255:              %lu\\n\", ns->rx_size_255);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_511:              %lu\\n\", ns->rx_size_511);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_1023:             %lu\\n\", ns->rx_size_1023);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_1522:             %lu\\n\", ns->rx_size_1522);\n-\tPMD_DRV_LOG(DEBUG, \"rx_size_big:              %lu\\n\", ns->rx_size_big);\n-\tPMD_DRV_LOG(DEBUG, \"rx_undersize:             %lu\\n\", ns->rx_undersize);\n-\tPMD_DRV_LOG(DEBUG, \"rx_fragments:             %lu\\n\", ns->rx_fragments);\n-\tPMD_DRV_LOG(DEBUG, \"rx_oversize:              %lu\\n\", ns->rx_oversize);\n-\tPMD_DRV_LOG(DEBUG, \"rx_jabber:                %lu\\n\", ns->rx_jabber);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_64:               %lu\\n\", ns->tx_size_64);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_127:              %lu\\n\", ns->tx_size_127);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_255:              %lu\\n\", ns->tx_size_255);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_511:              %lu\\n\", ns->tx_size_511);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_1023:             %lu\\n\", ns->tx_size_1023);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_1522:             %lu\\n\", ns->tx_size_1522);\n-\tPMD_DRV_LOG(DEBUG, \"tx_size_big:              %lu\\n\", ns->tx_size_big);\n-\tPMD_DRV_LOG(DEBUG, \"mac_short_packet_dropped: %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_64:               %lu\", ns->rx_size_64);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_127:              %lu\", ns->rx_size_127);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_255:              %lu\", ns->rx_size_255);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_511:              %lu\", ns->rx_size_511);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_1023:             %lu\", ns->rx_size_1023);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_1522:             %lu\", ns->rx_size_1522);\n+\tPMD_DRV_LOG(DEBUG, \"rx_size_big:              %lu\", ns->rx_size_big);\n+\tPMD_DRV_LOG(DEBUG, \"rx_undersize:             %lu\", ns->rx_undersize);\n+\tPMD_DRV_LOG(DEBUG, \"rx_fragments:             %lu\", ns->rx_fragments);\n+\tPMD_DRV_LOG(DEBUG, \"rx_oversize:              %lu\", ns->rx_oversize);\n+\tPMD_DRV_LOG(DEBUG, \"rx_jabber:                %lu\", ns->rx_jabber);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_64:               %lu\", ns->tx_size_64);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_127:              %lu\", ns->tx_size_127);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_255:              %lu\", ns->tx_size_255);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_511:              %lu\", ns->tx_size_511);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_1023:             %lu\", ns->tx_size_1023);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_1522:             %lu\", ns->tx_size_1522);\n+\tPMD_DRV_LOG(DEBUG, \"tx_size_big:              %lu\", ns->tx_size_big);\n+\tPMD_DRV_LOG(DEBUG, \"mac_short_packet_dropped: %lu\",\n \t\t\tns->mac_short_packet_dropped);\n-\tPMD_DRV_LOG(DEBUG, \"checksum_error:           %lu\\n\",\n+\tPMD_DRV_LOG(DEBUG, \"checksum_error:           %lu\",\n \t\t    ns->checksum_error);\n-\tPMD_DRV_LOG(DEBUG, \"***************** PF stats end ********************\\n\");\n+\tPMD_DRV_LOG(DEBUG, \"***************** PF stats end ********************\");\n }\n \n /* Reset the statistics */\n@@ -1520,12 +1520,12 @@ i40e_macaddr_add(struct rte_eth_dev *dev,\n \tint ret;\n \n \tif (!is_valid_assigned_ether_addr(mac_addr)) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid ethernet address\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Invalid ethernet address\");\n \t\treturn;\n \t}\n \n \tif (is_same_ether_addr(mac_addr, &(pf->dev_addr))) {\n-\t\tPMD_DRV_LOG(INFO, \"Ignore adding permanent mac address\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"Ignore adding permanent mac address\");\n \t\treturn;\n \t}\n \n@@ -1533,7 +1533,7 @@ i40e_macaddr_add(struct rte_eth_dev *dev,\n \tret = i40e_aq_mac_address_write(hw, I40E_AQC_WRITE_TYPE_LAA_ONLY,\n \t\t\t\t\tmac_addr->addr_bytes, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to write mac address\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to write mac address\");\n \t\treturn;\n \t}\n \n@@ -1543,7 +1543,7 @@ i40e_macaddr_add(struct rte_eth_dev *dev,\n \n \tret = i40e_vsi_add_mac(vsi, mac_addr);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to add MACVLAN filter\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to add MACVLAN filter\");\n \t\treturn;\n \t}\n \n@@ -1573,7 +1573,7 @@ i40e_macaddr_remove(struct rte_eth_dev *dev, uint32_t index)\n \tret = i40e_aq_mac_address_write(hw, I40E_AQC_WRITE_TYPE_LAA_ONLY,\n \t\t\t\t\thw->mac.perm_addr, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to write mac address\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to write mac address\");\n \t\treturn;\n \t}\n \n@@ -1794,7 +1794,7 @@ i40e_get_cap(struct i40e_hw *hw)\n \t\t\t\t\t\tI40E_MAX_CAP_ELE_NUM;\n \tbuf = rte_zmalloc(\"i40e\", len, 0);\n \tif (!buf) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -1802,7 +1802,7 @@ i40e_get_cap(struct i40e_hw *hw)\n \tret = i40e_aq_discover_capabilities(hw, buf, len, &size,\n \t\t\ti40e_aqc_opc_list_func_capabilities, NULL);\n \tif (ret != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to discover capabilities\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to discover capabilities\");\n \n \t/* Free the temporary buffer after being used */\n \trte_free(buf);\n@@ -1819,13 +1819,13 @@ i40e_pf_parameter_init(struct rte_eth_dev *dev)\n \n \t/* First check if FW support SRIOV */\n \tif (dev->pci_dev->max_vfs && !hw->func_caps.sr_iov_1_1) {\n-\t\tPMD_INIT_LOG(ERR, \"HW configuration doesn't support SRIOV\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"HW configuration doesn't support SRIOV\");\n \t\treturn -EINVAL;\n \t}\n \n \tpf->flags = I40E_FLAG_HEADER_SPLIT_DISABLED;\n \tpf->max_num_vsi = RTE_MIN(hw->func_caps.num_vsis, I40E_MAX_NUM_VSIS);\n-\tPMD_INIT_LOG(INFO, \"Max supported VSIs:%u\\n\", pf->max_num_vsi);\n+\tPMD_INIT_LOG(INFO, \"Max supported VSIs:%u\", pf->max_num_vsi);\n \t/* Allocate queues for pf */\n \tif (hw->func_caps.rss) {\n \t\tpf->flags |= I40E_FLAG_RSS;\n@@ -1837,27 +1837,27 @@ i40e_pf_parameter_init(struct rte_eth_dev *dev)\n \tsum_queues = pf->lan_nb_qps;\n \t/* Default VSI is not counted in */\n \tsum_vsis = 0;\n-\tPMD_INIT_LOG(INFO, \"PF queue pairs:%u\\n\", pf->lan_nb_qps);\n+\tPMD_INIT_LOG(INFO, \"PF queue pairs:%u\", pf->lan_nb_qps);\n \n \tif (hw->func_caps.sr_iov_1_1 && dev->pci_dev->max_vfs) {\n \t\tpf->flags |= I40E_FLAG_SRIOV;\n \t\tpf->vf_nb_qps = RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF;\n \t\tif (dev->pci_dev->max_vfs > hw->func_caps.num_vfs) {\n \t\t\tPMD_INIT_LOG(ERR, \"Config VF number %u, \"\n-\t\t\t\t\"max supported %u.\\n\", dev->pci_dev->max_vfs,\n+\t\t\t\t\"max supported %u.\", dev->pci_dev->max_vfs,\n \t\t\t\t\t\thw->func_caps.num_vfs);\n \t\t\treturn -EINVAL;\n \t\t}\n \t\tif (pf->vf_nb_qps > I40E_MAX_QP_NUM_PER_VF) {\n \t\t\tPMD_INIT_LOG(ERR, \"FVL VF queue %u, \"\n-\t\t\t\t\"max support %u queues.\\n\", pf->vf_nb_qps,\n+\t\t\t\t\"max support %u queues.\", pf->vf_nb_qps,\n \t\t\t\t\t\tI40E_MAX_QP_NUM_PER_VF);\n \t\t\treturn -EINVAL;\n \t\t}\n \t\tpf->vf_num = dev->pci_dev->max_vfs;\n \t\tsum_queues += pf->vf_nb_qps * pf->vf_num;\n \t\tsum_vsis   += pf->vf_num;\n-\t\tPMD_INIT_LOG(INFO, \"Max VF num:%u each has queue pairs:%u\\n\",\n+\t\tPMD_INIT_LOG(INFO, \"Max VF num:%u each has queue pairs:%u\",\n \t\t\t\t\t\tpf->vf_num, pf->vf_nb_qps);\n \t} else\n \t\tpf->vf_num = 0;\n@@ -1867,7 +1867,7 @@ i40e_pf_parameter_init(struct rte_eth_dev *dev)\n \t\tpf->vmdq_nb_qps = I40E_DEFAULT_QP_NUM_VMDQ;\n \t\tsum_queues += pf->vmdq_nb_qps;\n \t\tsum_vsis += 1;\n-\t\tPMD_INIT_LOG(INFO, \"VMDQ queue pairs:%u\\n\", pf->vmdq_nb_qps);\n+\t\tPMD_INIT_LOG(INFO, \"VMDQ queue pairs:%u\", pf->vmdq_nb_qps);\n \t}\n \n \tif (hw->func_caps.fd) {\n@@ -1881,17 +1881,18 @@ i40e_pf_parameter_init(struct rte_eth_dev *dev)\n \n \tif (sum_vsis > pf->max_num_vsi ||\n \t\tsum_queues > hw->func_caps.num_rx_qp) {\n-\t\tPMD_INIT_LOG(ERR, \"VSI/QUEUE setting can't be satisfied\\n\");\n-\t\tPMD_INIT_LOG(ERR, \"Max VSIs: %u, asked:%u\\n\",\n+\t\tPMD_INIT_LOG(ERR, \"VSI/QUEUE setting can't be satisfied\");\n+\t\tPMD_INIT_LOG(ERR, \"Max VSIs: %u, asked:%u\",\n \t\t\t\tpf->max_num_vsi, sum_vsis);\n-\t\tPMD_INIT_LOG(ERR, \"Total queue pairs:%u, asked:%u\\n\",\n+\t\tPMD_INIT_LOG(ERR, \"Total queue pairs:%u, asked:%u\",\n \t\t\t\thw->func_caps.num_rx_qp, sum_queues);\n \t\treturn -EINVAL;\n \t}\n \n-\t/* Each VSI occupy 1 MSIX interrupt at least, plus IRQ0 for misc intr cause */\n+\t/* Each VSI occupy 1 MSIX interrupt at least, plus IRQ0 for misc intr\n+\t * cause */\n \tif (sum_vsis > hw->func_caps.num_msix_vectors - 1) {\n-\t\tPMD_INIT_LOG(ERR, \"Too many VSIs(%u), MSIX intr(%u) not enough\\n\",\n+\t\tPMD_INIT_LOG(ERR, \"Too many VSIs(%u), MSIX intr(%u) not enough\",\n \t\t\t\tsum_vsis, hw->func_caps.num_msix_vectors);\n \t\treturn -EINVAL;\n \t}\n@@ -1910,7 +1911,7 @@ i40e_pf_get_switch_config(struct i40e_pf *pf)\n \tswitch_config = (struct i40e_aqc_get_switch_config_resp *)\\\n \t\t\trte_zmalloc(\"i40e\", I40E_AQ_LARGE_BUF, 0);\n \tif (!switch_config) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocated memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocated memory\");\n \t\treturn -ENOMEM;\n \t}\n \n@@ -1918,12 +1919,12 @@ i40e_pf_get_switch_config(struct i40e_pf *pf)\n \tret = i40e_aq_get_switch_config(hw, switch_config,\n \t\tI40E_AQ_LARGE_BUF, &start_seid, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to get switch configurations\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to get switch configurations\");\n \t\tgoto fail;\n \t}\n \tnum_reported = rte_le_to_cpu_16(switch_config->header.num_reported);\n \tif (num_reported != 1) { /* The number should be 1 */\n-\t\tPMD_DRV_LOG(ERR, \"Wrong number of switch config reported\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Wrong number of switch config reported\");\n \t\tgoto fail;\n \t}\n \n@@ -1933,7 +1934,7 @@ i40e_pf_get_switch_config(struct i40e_pf *pf)\n \t\tpf->mac_seid = rte_le_to_cpu_16(element->uplink_seid);\n \t\tpf->main_vsi_seid = rte_le_to_cpu_16(element->seid);\n \t} else\n-\t\tPMD_DRV_LOG(INFO, \"Unknown element type\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"Unknown element type\");\n \n fail:\n \trte_free(switch_config);\n@@ -1952,8 +1953,7 @@ i40e_res_pool_init (struct i40e_res_pool_info *pool, uint32_t base,\n \n \tentry = rte_zmalloc(\"i40e\", sizeof(*entry), 0);\n \tif (entry == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for \"\n-\t\t\t\t\t\t\"resource pool\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for resource pool\");\n \t\treturn -ENOMEM;\n \t}\n \n@@ -2006,7 +2006,7 @@ i40e_res_pool_free(struct i40e_res_pool_info *pool,\n \tint insert;\n \n \tif (pool == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid parameter\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Invalid parameter\");\n \t\treturn -EINVAL;\n \t}\n \n@@ -2022,7 +2022,7 @@ i40e_res_pool_free(struct i40e_res_pool_info *pool,\n \n \t/* Not find, return */\n \tif (valid_entry == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to find entry\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to find entry\");\n \t\treturn -EINVAL;\n \t}\n \n@@ -2091,12 +2091,12 @@ i40e_res_pool_alloc(struct i40e_res_pool_info *pool,\n \tstruct pool_entry *entry, *valid_entry;\n \n \tif (pool == NULL || num == 0) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid parameter\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Invalid parameter\");\n \t\treturn -EINVAL;\n \t}\n \n \tif (pool->num_free < num) {\n-\t\tPMD_DRV_LOG(ERR, \"No resource. ask:%u, available:%u\\n\",\n+\t\tPMD_DRV_LOG(ERR, \"No resource. ask:%u, available:%u\",\n \t\t\t\tnum, pool->num_free);\n \t\treturn -ENOMEM;\n \t}\n@@ -2117,7 +2117,7 @@ i40e_res_pool_alloc(struct i40e_res_pool_info *pool,\n \n \t/* Not find one to satisfy the request, return */\n \tif (valid_entry == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"No valid entry found\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"No valid entry found\");\n \t\treturn -ENOMEM;\n \t}\n \t/**\n@@ -2135,7 +2135,7 @@ i40e_res_pool_alloc(struct i40e_res_pool_info *pool,\n \t\tentry = rte_zmalloc(\"res_pool\", sizeof(*entry), 0);\n \t\tif (entry == NULL) {\n \t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for \"\n-\t\t\t\t\t\"resource pool\\n\");\n+\t\t\t\t    \"resource pool\");\n \t\t\treturn -ENOMEM;\n \t\t}\n \t\tentry->base = valid_entry->base;\n@@ -2170,15 +2170,14 @@ validate_tcmap_parameter(struct i40e_vsi *vsi, uint8_t enabled_tcmap)\n \n \t/* If DCB is not supported, only default TC is supported */\n \tif (!hw->func_caps.dcb && enabled_tcmap != I40E_DEFAULT_TCMAP) {\n-\t\tPMD_DRV_LOG(ERR, \"DCB is not enabled, \"\n-\t\t\t\t\"only TC0 is supported\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"DCB is not enabled, only TC0 is supported\");\n \t\treturn -EINVAL;\n \t}\n \n \tif (!bitmap_is_subset(hw->func_caps.enabled_tcmap, enabled_tcmap)) {\n \t\tPMD_DRV_LOG(ERR, \"Enabled TC map 0x%x not applicable to \"\n-\t\t\t\"HW support 0x%x\\n\", hw->func_caps.enabled_tcmap,\n-\t\t\t\t\t\t\tenabled_tcmap);\n+\t\t\t    \"HW support 0x%x\", hw->func_caps.enabled_tcmap,\n+\t\t\t    enabled_tcmap);\n \t\treturn -EINVAL;\n \t}\n \treturn I40E_SUCCESS;\n@@ -2194,7 +2193,7 @@ i40e_vsi_vlan_pvid_set(struct i40e_vsi *vsi,\n \tint ret;\n \n \tif (vsi == NULL || info == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"invalid parameters\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"invalid parameters\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n@@ -2226,7 +2225,7 @@ i40e_vsi_vlan_pvid_set(struct i40e_vsi *vsi,\n \thw = I40E_VSI_TO_HW(vsi);\n \tret = i40e_aq_update_vsi_params(hw, &ctxt, NULL);\n \tif (ret != I40E_SUCCESS)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to update VSI params\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to update VSI params\");\n \n \treturn ret;\n }\n@@ -2243,7 +2242,7 @@ i40e_vsi_update_tc_bandwidth(struct i40e_vsi *vsi, uint8_t enabled_tcmap)\n \t\treturn ret;\n \n \tif (!vsi->seid) {\n-\t\tPMD_DRV_LOG(ERR, \"seid not valid\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"seid not valid\");\n \t\treturn -EINVAL;\n \t}\n \n@@ -2255,7 +2254,7 @@ i40e_vsi_update_tc_bandwidth(struct i40e_vsi *vsi, uint8_t enabled_tcmap)\n \n \tret = i40e_aq_config_vsi_tc_bw(hw, vsi->seid, &tc_bw_data, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to configure TC BW\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to configure TC BW\");\n \t\treturn ret;\n \t}\n \n@@ -2333,7 +2332,7 @@ i40e_veb_release(struct i40e_veb *veb)\n \t\treturn -EINVAL;\n \n \tif (!TAILQ_EMPTY(&veb->head)) {\n-\t\tPMD_DRV_LOG(ERR, \"VEB still has VSI attached, can't remove\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"VEB still has VSI attached, can't remove\");\n \t\treturn -EACCES;\n \t}\n \n@@ -2357,14 +2356,14 @@ i40e_veb_setup(struct i40e_pf *pf, struct i40e_vsi *vsi)\n \n \tif (NULL == pf || vsi == NULL) {\n \t\tPMD_DRV_LOG(ERR, \"veb setup failed, \"\n-\t\t\t\"associated VSI shouldn't null\\n\");\n+\t\t\t\"associated VSI shouldn't null\");\n \t\treturn NULL;\n \t}\n \thw = I40E_PF_TO_HW(pf);\n \n \tveb = rte_zmalloc(\"i40e_veb\", sizeof(struct i40e_veb), 0);\n \tif (!veb) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for veb\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for veb\");\n \t\tgoto fail;\n \t}\n \n@@ -2376,8 +2375,8 @@ i40e_veb_setup(struct i40e_pf *pf, struct i40e_vsi *vsi)\n \t\tI40E_DEFAULT_TCMAP, false, false, &veb->seid, NULL);\n \n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Add veb failed, aq_err: %d\\n\",\n-\t\t\t\t\thw->aq.asq_last_status);\n+\t\tPMD_DRV_LOG(ERR, \"Add veb failed, aq_err: %d\",\n+\t\t\t    hw->aq.asq_last_status);\n \t\tgoto fail;\n \t}\n \n@@ -2385,8 +2384,8 @@ i40e_veb_setup(struct i40e_pf *pf, struct i40e_vsi *vsi)\n \tret = i40e_aq_get_veb_parameters(hw, veb->seid, NULL, NULL,\n \t\t\t\t&veb->stats_idx, NULL, NULL, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Get veb statics index failed, aq_err: %d\\n\",\n-\t\t\t\t\t\thw->aq.asq_last_status);\n+\t\tPMD_DRV_LOG(ERR, \"Get veb statics index failed, aq_err: %d\",\n+\t\t\t    hw->aq.asq_last_status);\n \t\tgoto fail;\n \t}\n \n@@ -2433,7 +2432,7 @@ i40e_vsi_release(struct i40e_vsi *vsi)\n \tif (vsi->type != I40E_VSI_MAIN) {\n \t\t/* Remove vsi from parent's sibling list */\n \t\tif (vsi->parent_vsi == NULL || vsi->parent_vsi->veb == NULL) {\n-\t\t\tPMD_DRV_LOG(ERR, \"VSI's parent VSI is NULL\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"VSI's parent VSI is NULL\");\n \t\t\treturn I40E_ERR_PARAM;\n \t\t}\n \t\tTAILQ_REMOVE(&vsi->parent_vsi->veb->head,\n@@ -2442,7 +2441,7 @@ i40e_vsi_release(struct i40e_vsi *vsi)\n \t\t/* Remove all switch element of the VSI */\n \t\tret = i40e_aq_delete_element(hw, vsi->seid, NULL);\n \t\tif (ret != I40E_SUCCESS)\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to delete element\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to delete element\");\n \t}\n \ti40e_res_pool_free(&pf->qp_pool, vsi->base_queue);\n \n@@ -2473,11 +2472,11 @@ i40e_update_default_filter_setting(struct i40e_vsi *vsi)\n \t\tstruct i40e_mac_filter *f;\n \n \t\tPMD_DRV_LOG(WARNING, \"Cannot remove the default \"\n-\t\t\t\t\t\t\"macvlan filter\\n\");\n+\t\t\t    \"macvlan filter\");\n \t\t/* It needs to add the permanent mac into mac list */\n \t\tf = rte_zmalloc(\"macv_filter\", sizeof(*f), 0);\n \t\tif (f == NULL) {\n-\t\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\t\treturn I40E_ERR_NO_MEMORY;\n \t\t}\n \t\t(void)rte_memcpy(&f->macaddr.addr_bytes, hw->mac.perm_addr,\n@@ -2504,7 +2503,7 @@ i40e_vsi_dump_bw_config(struct i40e_vsi *vsi)\n \tret = i40e_aq_query_vsi_bw_config(hw, vsi->seid, &bw_config, NULL);\n \tif (ret != I40E_SUCCESS) {\n \t\tPMD_DRV_LOG(ERR, \"VSI failed to get bandwidth \"\n-\t\t\t\"configuration %u\\n\", hw->aq.asq_last_status);\n+\t\t\t    \"configuration %u\", hw->aq.asq_last_status);\n \t\treturn ret;\n \t}\n \n@@ -2513,21 +2512,21 @@ i40e_vsi_dump_bw_config(struct i40e_vsi *vsi)\n \t\t\t\t\t&ets_sla_config, NULL);\n \tif (ret != I40E_SUCCESS) {\n \t\tPMD_DRV_LOG(ERR, \"VSI failed to get TC bandwdith \"\n-\t\t\t\"configuration %u\\n\", hw->aq.asq_last_status);\n+\t\t\t    \"configuration %u\", hw->aq.asq_last_status);\n \t\treturn ret;\n \t}\n \n \t/* Not store the info yet, just print out */\n-\tPMD_DRV_LOG(INFO, \"VSI bw limit:%u\\n\", bw_config.port_bw_limit);\n-\tPMD_DRV_LOG(INFO, \"VSI max_bw:%u\\n\", bw_config.max_bw);\n+\tPMD_DRV_LOG(INFO, \"VSI bw limit:%u\", bw_config.port_bw_limit);\n+\tPMD_DRV_LOG(INFO, \"VSI max_bw:%u\", bw_config.max_bw);\n \tfor (i = 0; i < I40E_MAX_TRAFFIC_CLASS; i++) {\n-\t\tPMD_DRV_LOG(INFO, \"\\tVSI TC%u:share credits %u\\n\", i,\n-\t\t\t\t\tets_sla_config.share_credits[i]);\n-\t\tPMD_DRV_LOG(INFO, \"\\tVSI TC%u:credits %u\\n\", i,\n-\t\t\trte_le_to_cpu_16(ets_sla_config.credits[i]));\n+\t\tPMD_DRV_LOG(INFO, \"\\tVSI TC%u:share credits %u\", i,\n+\t\t\t    ets_sla_config.share_credits[i]);\n+\t\tPMD_DRV_LOG(INFO, \"\\tVSI TC%u:credits %u\", i,\n+\t\t\t    rte_le_to_cpu_16(ets_sla_config.credits[i]));\n \t\tPMD_DRV_LOG(INFO, \"\\tVSI TC%u: max credits: %u\", i,\n-\t\t\trte_le_to_cpu_16(ets_sla_config.credits[i / 4]) >>\n-\t\t\t\t\t\t\t\t(i * 4));\n+\t\t\t    rte_le_to_cpu_16(ets_sla_config.credits[i / 4]) >>\n+\t\t\t    (i * 4));\n \t}\n \n \treturn 0;\n@@ -2549,13 +2548,13 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \n \tif (type != I40E_VSI_MAIN && uplink_vsi == NULL) {\n \t\tPMD_DRV_LOG(ERR, \"VSI setup failed, \"\n-\t\t\t\"VSI link shouldn't be NULL\\n\");\n+\t\t\t    \"VSI link shouldn't be NULL\");\n \t\treturn NULL;\n \t}\n \n \tif (type == I40E_VSI_MAIN && uplink_vsi != NULL) {\n \t\tPMD_DRV_LOG(ERR, \"VSI setup failed, MAIN VSI \"\n-\t\t\t\t\"uplink VSI should be NULL\\n\");\n+\t\t\t    \"uplink VSI should be NULL\");\n \t\treturn NULL;\n \t}\n \n@@ -2564,14 +2563,14 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\tuplink_vsi->veb = i40e_veb_setup(pf, uplink_vsi);\n \n \t\tif (NULL == uplink_vsi->veb) {\n-\t\t\tPMD_DRV_LOG(ERR, \"VEB setup failed\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"VEB setup failed\");\n \t\t\treturn NULL;\n \t\t}\n \t}\n \n \tvsi = rte_zmalloc(\"i40e_vsi\", sizeof(struct i40e_vsi), 0);\n \tif (!vsi) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for vsi\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for vsi\");\n \t\treturn NULL;\n \t}\n \tTAILQ_INIT(&vsi->mac_list);\n@@ -2594,7 +2593,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \tret = i40e_res_pool_alloc(&pf->qp_pool, vsi->nb_qps);\n \tif (ret < 0) {\n \t\tPMD_DRV_LOG(ERR, \"VSI %d allocate queue failed %d\",\n-\t\t\t\tvsi->seid, ret);\n+\t\t\t    vsi->seid, ret);\n \t\tgoto fail_mem;\n \t}\n \tvsi->base_queue = ret;\n@@ -2603,7 +2602,8 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \tif (type != I40E_VSI_SRIOV) {\n \t\tret = i40e_res_pool_alloc(&pf->msix_pool, 1);\n \t\tif (ret < 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"VSI %d get heap failed %d\", vsi->seid, ret);\n+\t\t\tPMD_DRV_LOG(ERR, \"VSI %d get heap failed %d\",\n+\t\t\t\t    vsi->seid, ret);\n \t\t\tgoto fail_queue_alloc;\n \t\t}\n \t\tvsi->msix_intr = ret;\n@@ -2629,7 +2629,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\tctxt.vf_num = 0;\n \t\tret = i40e_aq_get_vsi_params(hw, &ctxt, NULL);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to get VSI params\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to get VSI params\");\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \t\t(void)rte_memcpy(&vsi->info, &ctxt.info,\n@@ -2640,7 +2640,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\t/* Configure tc, enabled TC0 only */\n \t\tif (i40e_vsi_update_tc_bandwidth(vsi, I40E_DEFAULT_TCMAP) !=\n \t\t\tI40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to update TC bandwidth\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to update TC bandwidth\");\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \n@@ -2656,7 +2656,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\t\t\t\t\tI40E_DEFAULT_TCMAP);\n \t\tif (ret != I40E_SUCCESS) {\n \t\t\tPMD_DRV_LOG(ERR, \"Failed to configure \"\n-\t\t\t\t\t\"TC queue mapping\\n\");\n+\t\t\t\t    \"TC queue mapping\");\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \t\tctxt.seid = vsi->seid;\n@@ -2667,7 +2667,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\t/* Update VSI parameters */\n \t\tret = i40e_aq_update_vsi_params(hw, &ctxt, NULL);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to update VSI params\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to update VSI params\");\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \n@@ -2719,7 +2719,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\t\t\t\t\tI40E_DEFAULT_TCMAP);\n \t\tif (ret != I40E_SUCCESS) {\n \t\t\tPMD_DRV_LOG(ERR, \"Failed to configure \"\n-\t\t\t\t\t\"TC queue mapping\\n\");\n+\t\t\t\t    \"TC queue mapping\");\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \t\tctxt.info.up_enable_bits = I40E_DEFAULT_TCMAP;\n@@ -2731,15 +2731,15 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t\t */\n \t}\n \telse {\n-\t\tPMD_DRV_LOG(ERR, \"VSI: Not support other type VSI yet\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"VSI: Not support other type VSI yet\");\n \t\tgoto fail_msix_alloc;\n \t}\n \n \tif (vsi->type != I40E_VSI_MAIN) {\n \t\tret = i40e_aq_add_vsi(hw, &ctxt, NULL);\n \t\tif (ret) {\n-\t\t\tPMD_DRV_LOG(ERR, \"add vsi failed, aq_err=%d\\n\",\n-\t\t\t\t hw->aq.asq_last_status);\n+\t\t\tPMD_DRV_LOG(ERR, \"add vsi failed, aq_err=%d\",\n+\t\t\t\t    hw->aq.asq_last_status);\n \t\t\tgoto fail_msix_alloc;\n \t\t}\n \t\tmemcpy(&vsi->info, &ctxt.info, sizeof(ctxt.info));\n@@ -2754,7 +2754,7 @@ i40e_vsi_setup(struct i40e_pf *pf,\n \t/* MAC/VLAN configuration */\n \tret = i40e_vsi_add_mac(vsi, &broadcast);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to add MACVLAN filter\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to add MACVLAN filter\");\n \t\tgoto fail_msix_alloc;\n \t}\n \n@@ -2806,8 +2806,8 @@ i40e_vsi_config_vlan_stripping(struct i40e_vsi *vsi, bool on)\n \t(void)rte_memcpy(&ctxt.info, &vsi->info, sizeof(vsi->info));\n \tret = i40e_aq_update_vsi_params(hw, &ctxt, NULL);\n \tif (ret)\n-\t\tPMD_DRV_LOG(INFO, \"Update VSI failed to %s vlan stripping\\n\",\n-\t\t\t\t\t\ton ? \"enable\" : \"disable\");\n+\t\tPMD_DRV_LOG(INFO, \"Update VSI failed to %s vlan stripping\",\n+\t\t\t    on ? \"enable\" : \"disable\");\n \n \treturn ret;\n }\n@@ -2827,7 +2827,7 @@ i40e_dev_init_vlan(struct rte_eth_dev *dev)\n \tret = i40e_vlan_pvid_set(dev, data->dev_conf.txmode.pvid,\n \t\t\t\tdata->dev_conf.txmode.hw_vlan_insert_pvid);\n \tif (ret)\n-\t\tPMD_DRV_LOG(INFO, \"Failed to update VSI params\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"Failed to update VSI params\");\n \n \treturn ret;\n }\n@@ -2852,13 +2852,13 @@ i40e_update_flow_control(struct i40e_hw *hw)\n \tmemset(&link_status, 0, sizeof(link_status));\n \tret = i40e_aq_get_link_info(hw, FALSE, &link_status, NULL);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to get link status information\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to get link status information\");\n \t\tgoto write_reg; /* Disable flow control */\n \t}\n \n \tan_info = hw->phy.link_info.an_info;\n \tif (!(an_info & I40E_AQ_AN_COMPLETED)) {\n-\t\tPMD_DRV_LOG(INFO, \"Link auto negotiation not completed\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"Link auto negotiation not completed\");\n \t\tret = I40E_ERR_NOT_READY;\n \t\tgoto write_reg; /* Disable flow control */\n \t}\n@@ -2936,7 +2936,7 @@ i40e_pf_setup(struct i40e_pf *pf)\n \tret = i40e_set_filter_control(hw, &settings);\n \tif (ret)\n \t\tPMD_INIT_LOG(WARNING, \"setup_pf_filter_control failed: %d\",\n-\t\t\t\t\t\t\t\tret);\n+\t\t\t     ret);\n \n \t/* Update flow control according to the auto negotiation */\n \ti40e_update_flow_control(hw);\n@@ -2996,8 +2996,8 @@ i40e_switch_tx_queue(struct i40e_hw *hw, uint16_t q_idx, bool on)\n \t}\n \t/* Check if it is timeout */\n \tif (j >= I40E_CHK_Q_ENA_COUNT) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to %s tx queue[%u]\\n\",\n-\t\t\t(on ? \"enable\" : \"disable\"), q_idx);\n+\t\tPMD_DRV_LOG(ERR, \"Failed to %s tx queue[%u]\",\n+\t\t\t    (on ? \"enable\" : \"disable\"), q_idx);\n \t\treturn I40E_ERR_TIMEOUT;\n \t}\n \n@@ -3075,8 +3075,8 @@ i40e_switch_rx_queue(struct i40e_hw *hw, uint16_t q_idx, bool on)\n \n \t/* Check if it is timeout */\n \tif (j >= I40E_CHK_Q_ENA_COUNT) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to %s rx queue[%u]\\n\",\n-\t\t\t(on ? \"enable\" : \"disable\"), q_idx);\n+\t\tPMD_DRV_LOG(ERR, \"Failed to %s rx queue[%u]\",\n+\t\t\t    (on ? \"enable\" : \"disable\"), q_idx);\n \t\treturn I40E_ERR_TIMEOUT;\n \t}\n \n@@ -3119,7 +3119,7 @@ i40e_vsi_switch_queues(struct i40e_vsi *vsi, bool on)\n \t\t/* enable rx queues before enabling tx queues */\n \t\tret = i40e_vsi_switch_rx_queues(vsi, on);\n \t\tif (ret) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch rx queues\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch rx queues\");\n \t\t\treturn ret;\n \t\t}\n \t\tret = i40e_vsi_switch_tx_queues(vsi, on);\n@@ -3127,7 +3127,7 @@ i40e_vsi_switch_queues(struct i40e_vsi *vsi, bool on)\n \t\t/* Stop tx queues before stopping rx queues */\n \t\tret = i40e_vsi_switch_tx_queues(vsi, on);\n \t\tif (ret) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch tx queues\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch tx queues\");\n \t\t\treturn ret;\n \t\t}\n \t\tret = i40e_vsi_switch_rx_queues(vsi, on);\n@@ -3168,7 +3168,7 @@ i40e_vsi_rx_init(struct i40e_vsi *vsi)\n \t\tret = i40e_rx_queue_init(data->rx_queues[i]);\n \t\tif (ret != I40E_SUCCESS) {\n \t\t\tPMD_DRV_LOG(ERR, \"Failed to do RX queue \"\n-\t\t\t\t\t\"initialization\\n\");\n+\t\t\t\t    \"initialization\");\n \t\t\tbreak;\n \t\t}\n \t}\n@@ -3184,12 +3184,12 @@ i40e_vsi_init(struct i40e_vsi *vsi)\n \n \terr = i40e_vsi_tx_init(vsi);\n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to do vsi TX initialization\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to do vsi TX initialization\");\n \t\treturn err;\n \t}\n \terr = i40e_vsi_rx_init(vsi);\n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to do vsi RX initialization\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to do vsi RX initialization\");\n \t\treturn err;\n \t}\n \n@@ -3318,14 +3318,14 @@ i40e_dev_handle_vfr_event(struct rte_eth_dev *dev)\n \t\t\t/* Clear the event first */\n \t\t\tI40E_WRITE_REG(hw, I40E_GLGEN_VFLRSTAT(index),\n \t\t\t\t\t\t\t(0x1 << offset));\n-\t\t\tPMD_DRV_LOG(INFO, \"VF %u reset occured\\n\", abs_vf_id);\n+\t\t\tPMD_DRV_LOG(INFO, \"VF %u reset occured\", abs_vf_id);\n \t\t\t/**\n \t\t\t * Only notify a VF reset event occured,\n \t\t\t * don't trigger another SW reset\n \t\t\t */\n \t\t\tret = i40e_pf_host_vf_reset(&pf->vfs[i], 0);\n \t\t\tif (ret != I40E_SUCCESS)\n-\t\t\t\tPMD_DRV_LOG(ERR, \"Failed to do VF reset\\n\");\n+\t\t\t\tPMD_DRV_LOG(ERR, \"Failed to do VF reset\");\n \t\t}\n \t}\n }\n@@ -3341,7 +3341,7 @@ i40e_dev_handle_aq_msg(struct rte_eth_dev *dev)\n \tinfo.msg_size = I40E_AQ_BUF_SZ;\n \tinfo.msg_buf = rte_zmalloc(\"msg_buffer\", I40E_AQ_BUF_SZ, 0);\n \tif (!info.msg_buf) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate mem\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate mem\");\n \t\treturn;\n \t}\n \n@@ -3351,7 +3351,7 @@ i40e_dev_handle_aq_msg(struct rte_eth_dev *dev)\n \n \t\tif (ret != I40E_SUCCESS) {\n \t\t\tPMD_DRV_LOG(INFO, \"Failed to read msg from AdminQ, \"\n-\t\t\t\t\"aq_err: %u\\n\", hw->aq.asq_last_status);\n+\t\t\t\t    \"aq_err: %u\", hw->aq.asq_last_status);\n \t\t\tbreak;\n \t\t}\n \t\topcode = rte_le_to_cpu_16(info.desc.opcode);\n@@ -3367,8 +3367,8 @@ i40e_dev_handle_aq_msg(struct rte_eth_dev *dev)\n \t\t\t\t\tinfo.msg_size);\n \t\t\tbreak;\n \t\tdefault:\n-\t\t\tPMD_DRV_LOG(ERR, \"Request %u is not supported yet\\n\",\n-\t\t\t\topcode);\n+\t\t\tPMD_DRV_LOG(ERR, \"Request %u is not supported yet\",\n+\t\t\t\t    opcode);\n \t\t\tbreak;\n \t\t}\n \t\t/* Reset the buffer after processing one */\n@@ -3405,38 +3405,38 @@ i40e_dev_interrupt_handler(__rte_unused struct rte_intr_handle *handle,\n \t/* Shared IRQ case, return */\n \tif (!(cause & I40E_PFINT_ICR0_INTEVENT_MASK)) {\n \t\tPMD_DRV_LOG(INFO, \"Port%d INT0:share IRQ case, \"\n-\t\t\t\"no INT event to process\\n\", hw->pf_id);\n+\t\t\t    \"no INT event to process\", hw->pf_id);\n \t\tgoto done;\n \t}\n \n \tif (cause & I40E_PFINT_ICR0_LINK_STAT_CHANGE_MASK) {\n-\t\tPMD_DRV_LOG(INFO, \"INT:Link status changed\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:Link status changed\");\n \t\ti40e_dev_link_update(dev, 0);\n \t}\n \n \tif (cause & I40E_PFINT_ICR0_ECC_ERR_MASK)\n-\t\tPMD_DRV_LOG(INFO, \"INT:Unrecoverable ECC Error\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:Unrecoverable ECC Error\");\n \n \tif (cause & I40E_PFINT_ICR0_MAL_DETECT_MASK)\n-\t\tPMD_DRV_LOG(INFO, \"INT:Malicious programming detected\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:Malicious programming detected\");\n \n \tif (cause & I40E_PFINT_ICR0_GRST_MASK)\n-\t\tPMD_DRV_LOG(INFO, \"INT:Global Resets Requested\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:Global Resets Requested\");\n \n \tif (cause & I40E_PFINT_ICR0_PCI_EXCEPTION_MASK)\n-\t\tPMD_DRV_LOG(INFO, \"INT:PCI EXCEPTION occured\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:PCI EXCEPTION occured\");\n \n \tif (cause & I40E_PFINT_ICR0_HMC_ERR_MASK)\n-\t\tPMD_DRV_LOG(INFO, \"INT:HMC error occured\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:HMC error occured\");\n \n \t/* Add processing func to deal with VF reset vent */\n \tif (cause & I40E_PFINT_ICR0_VFLR_MASK) {\n-\t\tPMD_DRV_LOG(INFO, \"INT:VF reset detected\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:VF reset detected\");\n \t\ti40e_dev_handle_vfr_event(dev);\n \t}\n \t/* Find admin queue event */\n \tif (cause & I40E_PFINT_ICR0_ADMINQ_MASK) {\n-\t\tPMD_DRV_LOG(INFO, \"INT:ADMINQ event\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"INT:ADMINQ event\");\n \t\ti40e_dev_handle_aq_msg(dev);\n \t}\n \n@@ -3466,7 +3466,7 @@ i40e_add_macvlan_filters(struct i40e_vsi *vsi,\n \n \treq_list = rte_zmalloc(\"macvlan_add\", ele_buff_size, 0);\n \tif (req_list == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Fail to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Fail to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3488,7 +3488,7 @@ i40e_add_macvlan_filters(struct i40e_vsi *vsi,\n \t\tret = i40e_aq_add_macvlan(hw, vsi->seid, req_list,\n \t\t\t\t\t\tactual_num, NULL);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to add macvlan filter\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to add macvlan filter\");\n \t\t\tgoto DONE;\n \t\t}\n \t\tnum += actual_num;\n@@ -3518,7 +3518,7 @@ i40e_remove_macvlan_filters(struct i40e_vsi *vsi,\n \n \treq_list = rte_zmalloc(\"macvlan_remove\", ele_buff_size, 0);\n \tif (req_list == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Fail to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Fail to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3538,7 +3538,7 @@ i40e_remove_macvlan_filters(struct i40e_vsi *vsi,\n \t\tret = i40e_aq_remove_macvlan(hw, vsi->seid, req_list,\n \t\t\t\t\t\tactual_num, NULL);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to remove macvlan filter\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to remove macvlan filter\");\n \t\t\tgoto DONE;\n \t\t}\n \t\tnum += actual_num;\n@@ -3626,7 +3626,7 @@ i40e_find_all_vlan_for_mac(struct i40e_vsi *vsi,\n \t\t\t\tif (vsi->vfta[j] & (1 << k)) {\n \t\t\t\t\tif (i > num - 1) {\n \t\t\t\t\t\tPMD_DRV_LOG(ERR, \"vlan number \"\n-\t\t\t\t\t\t\t\t\"not match\\n\");\n+\t\t\t\t\t\t\t    \"not match\");\n \t\t\t\t\t\treturn I40E_ERR_PARAM;\n \t\t\t\t\t}\n \t\t\t\t\t(void)rte_memcpy(&mv_f[i].macaddr,\n@@ -3655,7 +3655,7 @@ i40e_find_all_mac_for_vlan(struct i40e_vsi *vsi,\n \n \tTAILQ_FOREACH(f, &vsi->mac_list, next) {\n \t\tif (i > num - 1) {\n-\t\t\tPMD_DRV_LOG(ERR, \"buffer number not match\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"buffer number not match\");\n \t\t\treturn I40E_ERR_PARAM;\n \t\t}\n \t\t(void)rte_memcpy(&mv_f[i].macaddr, &f->macaddr, ETH_ADDR_LEN);\n@@ -3685,7 +3685,7 @@ i40e_vsi_remove_all_macvlan_filter(struct i40e_vsi *vsi)\n \n \tmv_f = rte_zmalloc(\"macvlan_data\", num * sizeof(*mv_f), 0);\n \tif (mv_f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3731,14 +3731,14 @@ i40e_vsi_add_vlan(struct i40e_vsi *vsi, uint16_t vlan)\n \tmac_num = vsi->mac_num;\n \n \tif (mac_num == 0) {\n-\t\tPMD_DRV_LOG(ERR, \"Error! VSI doesn't have a mac addr\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Error! VSI doesn't have a mac addr\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n \tmv_f = rte_zmalloc(\"macvlan_data\", mac_num * sizeof(*mv_f), 0);\n \n \tif (mv_f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3782,14 +3782,14 @@ i40e_vsi_delete_vlan(struct i40e_vsi *vsi, uint16_t vlan)\n \tmac_num = vsi->mac_num;\n \n \tif (mac_num == 0) {\n-\t\tPMD_DRV_LOG(ERR, \"Error! VSI doesn't have a mac addr\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Error! VSI doesn't have a mac addr\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n \tmv_f = rte_zmalloc(\"macvlan_data\", mac_num * sizeof(*mv_f), 0);\n \n \tif (mv_f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3849,7 +3849,7 @@ i40e_vsi_add_mac(struct i40e_vsi *vsi, struct ether_addr *addr)\n \n \tmv_f = rte_zmalloc(\"macvlan_data\", vlan_num * sizeof(*mv_f), 0);\n \tif (mv_f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \n@@ -3864,7 +3864,7 @@ i40e_vsi_add_mac(struct i40e_vsi *vsi, struct ether_addr *addr)\n \t/* Add the mac addr into mac list */\n \tf = rte_zmalloc(\"macv_filter\", sizeof(*f), 0);\n \tif (f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\tret = I40E_ERR_NO_MEMORY;\n \t\tgoto DONE;\n \t}\n@@ -3894,12 +3894,12 @@ i40e_vsi_delete_mac(struct i40e_vsi *vsi, struct ether_addr *addr)\n \n \tvlan_num = vsi->vlan_num;\n \tif (vlan_num == 0) {\n-\t\tPMD_DRV_LOG(ERR, \"VLAN number shouldn't be 0\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"VLAN number shouldn't be 0\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \tmv_f = rte_zmalloc(\"macvlan_data\", vlan_num * sizeof(*mv_f), 0);\n \tif (mv_f == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate memory\");\n \t\treturn I40E_ERR_NO_MEMORY;\n \t}\n \ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev_vf.c b/lib/librte_pmd_i40e/i40e_ethdev_vf.c\nindex 9c1ae94..8c89465 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev_vf.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev_vf.c\n@@ -205,23 +205,22 @@ i40evf_parse_pfmsg(struct i40e_vf *vf,\n \t\t\tvf->link_up =\n \t\t\t\tvpe->event_data.link_event.link_status;\n \t\t\tvf->pend_msg |= PFMSG_LINK_CHANGE;\n-\t\t\tPMD_DRV_LOG(INFO, \"Link status update:%s\\n\",\n-\t\t\t\t\tvf->link_up ? \"up\" : \"down\");\n+\t\t\tPMD_DRV_LOG(INFO, \"Link status update:%s\",\n+\t\t\t\t    vf->link_up ? \"up\" : \"down\");\n \t\t\tbreak;\n \t\tcase I40E_VIRTCHNL_EVENT_RESET_IMPENDING:\n \t\t\tvf->vf_reset = true;\n \t\t\tvf->pend_msg |= PFMSG_RESET_IMPENDING;\n-\t\t\tPMD_DRV_LOG(INFO, \"vf is reseting\\n\");\n+\t\t\tPMD_DRV_LOG(INFO, \"vf is reseting\");\n \t\t\tbreak;\n \t\tcase I40E_VIRTCHNL_EVENT_PF_DRIVER_CLOSE:\n \t\t\tvf->dev_closed = true;\n \t\t\tvf->pend_msg |= PFMSG_DRIVER_CLOSE;\n-\t\t\tPMD_DRV_LOG(INFO, \"PF driver closed\\n\");\n+\t\t\tPMD_DRV_LOG(INFO, \"PF driver closed\");\n \t\t\tbreak;\n \t\tdefault:\n-\t\t\tPMD_DRV_LOG(ERR,\n-\t\t\t\t\"%s: Unknown event %d from pf\\n\",\n-\t\t\t\t__func__, vpe->event);\n+\t\t\tPMD_DRV_LOG(ERR, \"%s: Unknown event %d from pf\",\n+\t\t\t\t    __func__, vpe->event);\n \t\t}\n \t} else {\n \t\t/* async reply msg on command issued by vf previously */\n@@ -315,7 +314,7 @@ _atomic_set_cmd(struct i40e_vf *vf, enum i40e_virtchnl_ops ops)\n \t\t\tI40E_VIRTCHNL_OP_UNKNOWN, ops);\n \n \tif (!ret)\n-\t\tPMD_DRV_LOG(ERR, \"There is incomplete cmd %d\\n\", vf->pend_cmd);\n+\t\tPMD_DRV_LOG(ERR, \"There is incomplete cmd %d\", vf->pend_cmd);\n \n \treturn !ret;\n }\n@@ -339,7 +338,7 @@ i40evf_execute_vf_cmd(struct rte_eth_dev *dev, struct vf_cmd_info *args)\n \terr = i40e_aq_send_msg_to_pf(hw, args->ops, I40E_SUCCESS,\n \t\t     args->in_args, args->in_args_size, NULL);\n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"fail to send cmd %d\\n\", args->ops);\n+\t\tPMD_DRV_LOG(ERR, \"fail to send cmd %d\", args->ops);\n \t\treturn err;\n \t}\n \n@@ -348,10 +347,10 @@ i40evf_execute_vf_cmd(struct rte_eth_dev *dev, struct vf_cmd_info *args)\n \tif (!err && args->ops == info.ops)\n \t\t_clear_cmd(vf);\n \telse if (err)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to read message from AdminQ\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to read message from AdminQ\");\n \telse if (args->ops != info.ops)\n-\t\tPMD_DRV_LOG(ERR, \"command mismatch, expect %u, get %u\\n\",\n-\t\t\t\targs->ops, info.ops);\n+\t\tPMD_DRV_LOG(ERR, \"command mismatch, expect %u, get %u\",\n+\t\t\t    args->ops, info.ops);\n \n \treturn (err | info.result);\n }\n@@ -378,7 +377,7 @@ i40evf_check_api_version(struct rte_eth_dev *dev)\n \n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err) {\n-\t\tPMD_INIT_LOG(ERR, \"fail to execute command OP_VERSION\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"fail to execute command OP_VERSION\");\n \t\treturn err;\n \t}\n \n@@ -386,14 +385,14 @@ i40evf_check_api_version(struct rte_eth_dev *dev)\n \t/* We are talking with DPDK host */\n \tif (pver->major == I40E_DPDK_VERSION_MAJOR) {\n \t\tvf->host_is_dpdk = TRUE;\n-\t\tPMD_DRV_LOG(INFO, \"Detect PF host is DPDK app\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"Detect PF host is DPDK app\");\n \t}\n \t/* It's linux host driver */\n \telse if ((pver->major != version.major) ||\n \t    (pver->minor != version.minor)) {\n \t\tPMD_INIT_LOG(ERR, \"pf/vf API version mismatch. \"\n-\t\t\t\"(%u.%u)-(%u.%u)\\n\", pver->major, pver->minor,\n-\t\t\t\t\tversion.major, version.minor);\n+\t\t\t     \"(%u.%u)-(%u.%u)\", pver->major, pver->minor,\n+\t\t\t     version.major, version.minor);\n \t\treturn -1;\n \t}\n \n@@ -418,8 +417,7 @@ i40evf_get_vf_resource(struct rte_eth_dev *dev)\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command \"\n-\t\t\t\t\t\"OP_GET_VF_RESOURCE\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_GET_VF_RESOURCE\");\n \t\treturn err;\n \t}\n \n@@ -462,7 +460,7 @@ i40evf_config_promisc(struct rte_eth_dev *dev,\n \n \tif (err)\n \t\tPMD_DRV_LOG(ERR, \"fail to execute command \"\n-\t\t\t\t\"CONFIG_PROMISCUOUS_MODE\\n\");\n+\t\t\t    \"CONFIG_PROMISCUOUS_MODE\");\n \treturn err;\n }\n \n@@ -487,7 +485,7 @@ i40evf_config_vlan_offload(struct rte_eth_dev *dev,\n \n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command CFG_VLAN_OFFLOAD\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command CFG_VLAN_OFFLOAD\");\n \n \treturn err;\n }\n@@ -502,7 +500,7 @@ i40evf_config_vlan_pvid(struct rte_eth_dev *dev,\n \tstruct i40e_virtchnl_pvid_info tpid_info;\n \n \tif (dev == NULL || info == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"invalid parameters\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"invalid parameters\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n@@ -518,7 +516,7 @@ i40evf_config_vlan_pvid(struct rte_eth_dev *dev,\n \n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command CFG_VLAN_PVID\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command CFG_VLAN_PVID\");\n \n \treturn err;\n }\n@@ -542,7 +540,7 @@ i40evf_configure_queues(struct rte_eth_dev *dev)\n \tlen = sizeof(*queue_info) + sizeof(*queue_cfg) * nb_qpairs;\n \tqueue_info = rte_zmalloc(\"queue_info\", len, 0);\n \tif (queue_info == NULL) {\n-\t\tPMD_INIT_LOG(ERR, \"failed alloc memory for queue_info\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"failed alloc memory for queue_info\");\n \t\treturn -1;\n \t}\n \tqueue_info->vsi_id = vf->vsi_res->vsi_id;\n@@ -595,7 +593,7 @@ i40evf_configure_queues(struct rte_eth_dev *dev)\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n \t\tPMD_DRV_LOG(ERR, \"fail to execute command \"\n-\t\t\t\t\"OP_CONFIG_VSI_QUEUES\\n\");\n+\t\t\t    \"OP_CONFIG_VSI_QUEUES\");\n \trte_free(queue_info);\n \n \treturn err;\n@@ -630,7 +628,7 @@ i40evf_config_irq_map(struct rte_eth_dev *dev)\n \targs.out_size = I40E_AQ_BUF_SZ;\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_ENABLE_QUEUES\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_ENABLE_QUEUES\");\n \n \treturn err;\n }\n@@ -661,8 +659,8 @@ i40evf_switch_queue(struct rte_eth_dev *dev, bool isrx, uint16_t qid,\n \targs.out_size = I40E_AQ_BUF_SZ;\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to switch %s %u %s\\n\", isrx ? \"RX\" : \"TX\",\n-\t\t\tqid, on ? \"on\" : \"off\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to switch %s %u %s\", isrx ? \"RX\" : \"TX\",\n+\t\t\t    qid, on ? \"on\" : \"off\");\n \n \treturn err;\n }\n@@ -680,8 +678,7 @@ i40evf_start_queues(struct rte_eth_dev *dev)\n \t\tif (rxq->start_rx_per_q)\n \t\t\tcontinue;\n \t\tif (i40evf_dev_rx_queue_start(dev, i) != 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\\n\",\n-\t\t\t\ti);\n+\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\", i);\n \t\t\treturn -1;\n \t\t}\n \t}\n@@ -691,8 +688,7 @@ i40evf_start_queues(struct rte_eth_dev *dev)\n \t\tif (txq->start_tx_per_q)\n \t\t\tcontinue;\n \t\tif (i40evf_dev_tx_queue_start(dev, i) != 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\\n\",\n-\t\t\t\ti);\n+\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\", i);\n \t\t\treturn -1;\n \t\t}\n \t}\n@@ -708,8 +704,7 @@ i40evf_stop_queues(struct rte_eth_dev *dev)\n \t/* Stop TX queues first */\n \tfor (i = 0; i < dev->data->nb_tx_queues; i++) {\n \t\tif (i40evf_dev_tx_queue_stop(dev, i) != 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\\n\",\n-\t\t\t\ti);\n+\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\", i);\n \t\t\treturn -1;\n \t\t}\n \t}\n@@ -717,8 +712,7 @@ i40evf_stop_queues(struct rte_eth_dev *dev)\n \t/* Then stop RX queues */\n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n \t\tif (i40evf_dev_rx_queue_stop(dev, i) != 0) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\\n\",\n-\t\t\t\ti);\n+\t\t\tPMD_DRV_LOG(ERR, \"Fail to start queue %u\", i);\n \t\t\treturn -1;\n \t\t}\n \t}\n@@ -737,10 +731,10 @@ i40evf_add_mac_addr(struct rte_eth_dev *dev, struct ether_addr *addr)\n \tstruct vf_cmd_info args;\n \n \tif (i40e_validate_mac_addr(addr->addr_bytes) != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid mac:%x:%x:%x:%x:%x:%x\\n\",\n-\t\t\taddr->addr_bytes[0], addr->addr_bytes[1],\n-\t\t\taddr->addr_bytes[2], addr->addr_bytes[3],\n-\t\t\taddr->addr_bytes[4], addr->addr_bytes[5]);\n+\t\tPMD_DRV_LOG(ERR, \"Invalid mac:%x:%x:%x:%x:%x:%x\",\n+\t\t\t    addr->addr_bytes[0], addr->addr_bytes[1],\n+\t\t\t    addr->addr_bytes[2], addr->addr_bytes[3],\n+\t\t\t    addr->addr_bytes[4], addr->addr_bytes[5]);\n \t\treturn -1;\n \t}\n \n@@ -758,7 +752,7 @@ i40evf_add_mac_addr(struct rte_eth_dev *dev, struct ether_addr *addr)\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n \t\tPMD_DRV_LOG(ERR, \"fail to execute command \"\n-\t\t\t\t\"OP_ADD_ETHER_ADDRESS\\n\");\n+\t\t\t    \"OP_ADD_ETHER_ADDRESS\");\n \n \treturn err;\n }\n@@ -774,10 +768,10 @@ i40evf_del_mac_addr(struct rte_eth_dev *dev, struct ether_addr *addr)\n \tstruct vf_cmd_info args;\n \n \tif (i40e_validate_mac_addr(addr->addr_bytes) != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid mac:%x-%x-%x-%x-%x-%x\\n\",\n-\t\t\taddr->addr_bytes[0], addr->addr_bytes[1],\n-\t\t\taddr->addr_bytes[2], addr->addr_bytes[3],\n-\t\t\taddr->addr_bytes[4], addr->addr_bytes[5]);\n+\t\tPMD_DRV_LOG(ERR, \"Invalid mac:%x-%x-%x-%x-%x-%x\",\n+\t\t\t    addr->addr_bytes[0], addr->addr_bytes[1],\n+\t\t\t    addr->addr_bytes[2], addr->addr_bytes[3],\n+\t\t\t    addr->addr_bytes[4], addr->addr_bytes[5]);\n \t\treturn -1;\n \t}\n \n@@ -795,7 +789,7 @@ i40evf_del_mac_addr(struct rte_eth_dev *dev, struct ether_addr *addr)\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n \t\tPMD_DRV_LOG(ERR, \"fail to execute command \"\n-\t\t\t\t\"OP_DEL_ETHER_ADDRESS\\n\");\n+\t\t\t    \"OP_DEL_ETHER_ADDRESS\");\n \n \treturn err;\n }\n@@ -819,7 +813,7 @@ i40evf_get_statics(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_GET_STATS\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_GET_STATS\");\n \t\treturn err;\n \t}\n \tpstats = (struct i40e_eth_stats *)args.out_buffer;\n@@ -857,7 +851,7 @@ i40evf_add_vlan(struct rte_eth_dev *dev, uint16_t vlanid)\n \targs.out_size = I40E_AQ_BUF_SZ;\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_ADD_VLAN\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_ADD_VLAN\");\n \n \treturn err;\n }\n@@ -884,7 +878,7 @@ i40evf_del_vlan(struct rte_eth_dev *dev, uint16_t vlanid)\n \targs.out_size = I40E_AQ_BUF_SZ;\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err)\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_DEL_VLAN\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_DEL_VLAN\");\n \n \treturn err;\n }\n@@ -903,7 +897,7 @@ i40evf_get_link_status(struct rte_eth_dev *dev, struct rte_eth_link *link)\n \targs.out_size = I40E_AQ_BUF_SZ;\n \terr = i40evf_execute_vf_cmd(dev, &args);\n \tif (err) {\n-\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_GET_LINK_STAT\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"fail to execute command OP_GET_LINK_STAT\");\n \t\treturn err;\n \t}\n \n@@ -939,7 +933,7 @@ i40evf_reset_vf(struct i40e_hw *hw)\n \tint i, reset;\n \n \tif (i40e_vf_reset(hw) != I40E_SUCCESS) {\n-\t\tPMD_INIT_LOG(ERR, \"Reset VF NIC failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"Reset VF NIC failed\");\n \t\treturn -1;\n \t}\n \t/**\n@@ -964,7 +958,7 @@ i40evf_reset_vf(struct i40e_hw *hw)\n \t}\n \n \tif (i >= MAX_RESET_WAIT_CNT) {\n-\t\tPMD_INIT_LOG(ERR, \"Reset VF NIC failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"Reset VF NIC failed\");\n \t\treturn -1;\n \t}\n \n@@ -980,49 +974,49 @@ i40evf_init_vf(struct rte_eth_dev *dev)\n \n \terr = i40evf_set_mac_type(hw);\n \tif (err) {\n-\t\tPMD_INIT_LOG(ERR, \"set_mac_type failed: %d\\n\", err);\n+\t\tPMD_INIT_LOG(ERR, \"set_mac_type failed: %d\", err);\n \t\tgoto err;\n \t}\n \n \ti40e_init_adminq_parameter(hw);\n \terr = i40e_init_adminq(hw);\n \tif (err) {\n-\t\tPMD_INIT_LOG(ERR, \"init_adminq failed: %d\\n\", err);\n+\t\tPMD_INIT_LOG(ERR, \"init_adminq failed: %d\", err);\n \t\tgoto err;\n \t}\n \n \n \t/* Reset VF and wait until it's complete */\n \tif (i40evf_reset_vf(hw)) {\n-\t\tPMD_INIT_LOG(ERR, \"reset NIC failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"reset NIC failed\");\n \t\tgoto err_aq;\n \t}\n \n \t/* VF reset, shutdown admin queue and initialize again */\n \tif (i40e_shutdown_adminq(hw) != I40E_SUCCESS) {\n-\t\tPMD_INIT_LOG(ERR, \"i40e_shutdown_adminq failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"i40e_shutdown_adminq failed\");\n \t\treturn -1;\n \t}\n \n \ti40e_init_adminq_parameter(hw);\n \tif (i40e_init_adminq(hw) != I40E_SUCCESS) {\n-\t\tPMD_INIT_LOG(ERR, \"init_adminq failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"init_adminq failed\");\n \t\treturn -1;\n \t}\n \tif (i40evf_check_api_version(dev) != 0) {\n-\t\tPMD_INIT_LOG(ERR, \"check_api version failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"check_api version failed\");\n \t\tgoto err_aq;\n \t}\n \tbufsz = sizeof(struct i40e_virtchnl_vf_resource) +\n \t\t(I40E_MAX_VF_VSI * sizeof(struct i40e_virtchnl_vsi_resource));\n \tvf->vf_res = rte_zmalloc(\"vf_res\", bufsz, 0);\n \tif (!vf->vf_res) {\n-\t\tPMD_INIT_LOG(ERR, \"unable to allocate vf_res memory\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"unable to allocate vf_res memory\");\n \t\t\tgoto err_aq;\n \t}\n \n \tif (i40evf_get_vf_resource(dev) != 0) {\n-\t\tPMD_INIT_LOG(ERR, \"i40evf_get_vf_config failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"i40evf_get_vf_config failed\");\n \t\tgoto err_alloc;\n \t}\n \n@@ -1033,7 +1027,7 @@ i40evf_init_vf(struct rte_eth_dev *dev)\n \t}\n \n \tif (!vf->vsi_res) {\n-\t\tPMD_INIT_LOG(ERR, \"no LAN VSI found\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"no LAN VSI found\");\n \t\tgoto err_alloc;\n \t}\n \n@@ -1092,7 +1086,7 @@ i40evf_dev_init(__rte_unused struct eth_driver *eth_drv,\n \thw->hw_addr = (void *)eth_dev->pci_dev->mem_resource[0].addr;\n \n \tif(i40evf_init_vf(eth_dev) != 0) {\n-\t\tPMD_INIT_LOG(ERR, \"Init vf failed\\n\");\n+\t\tPMD_INIT_LOG(ERR, \"Init vf failed\");\n \t\treturn -1;\n \t}\n \n@@ -1101,7 +1095,7 @@ i40evf_dev_init(__rte_unused struct eth_driver *eth_drv,\n \t\t\t\t\tETHER_ADDR_LEN, 0);\n \tif (eth_dev->data->mac_addrs == NULL) {\n \t\tPMD_INIT_LOG(ERR, \"Failed to allocate %d bytes needed to \"\n-\t\t\t\t\"store MAC addresses\", ETHER_ADDR_LEN);\n+\t\t\t     \"store MAC addresses\", ETHER_ADDR_LEN);\n \t\treturn -ENOMEM;\n \t}\n \tether_addr_copy((struct ether_addr *)hw->mac.addr,\n@@ -1229,7 +1223,7 @@ i40evf_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \n \t\terr = i40e_alloc_rx_queue_mbufs(rxq);\n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate RX queue mbuf\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate RX queue mbuf\");\n \t\t\treturn err;\n \t\t}\n \n@@ -1243,8 +1237,8 @@ i40evf_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \t\terr = i40evf_switch_queue(dev, TRUE, rx_queue_id, TRUE);\n \n \t\tif (err)\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u on\\n\",\n-\t\t\t\trx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u on\",\n+\t\t\t\t    rx_queue_id);\n \t}\n \n \treturn err;\n@@ -1262,8 +1256,8 @@ i40evf_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \t\terr = i40evf_switch_queue(dev, TRUE, rx_queue_id, FALSE);\n \n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u off\\n\",\n-\t\t\t\trx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u off\",\n+\t\t\t\t    rx_queue_id);\n \t\t\treturn err;\n \t\t}\n \n@@ -1287,8 +1281,8 @@ i40evf_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)\n \t\terr = i40evf_switch_queue(dev, FALSE, tx_queue_id, TRUE);\n \n \t\tif (err)\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u on\\n\",\n-\t\t\t\ttx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u on\",\n+\t\t\t\t    tx_queue_id);\n \t}\n \n \treturn err;\n@@ -1306,8 +1300,8 @@ i40evf_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id)\n \t\terr = i40evf_switch_queue(dev, FALSE, tx_queue_id, FALSE);\n \n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u of\\n\",\n-\t\t\t\ttx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u of\",\n+\t\t\t\t    tx_queue_id);\n \t\t\treturn err;\n \t\t}\n \n@@ -1384,27 +1378,27 @@ i40evf_dev_start(struct rte_eth_dev *dev)\n \tstruct i40e_hw *hw = I40E_DEV_PRIVATE_TO_HW(dev->data->dev_private);\n \tstruct ether_addr mac_addr;\n \n-\tPMD_DRV_LOG(DEBUG, \"i40evf_dev_start\");\n+\tPMD_INIT_FUNC_TRACE();\n \n \tvf->max_pkt_len = dev->data->dev_conf.rxmode.max_rx_pkt_len;\n \tif (dev->data->dev_conf.rxmode.jumbo_frame == 1) {\n \t\tif (vf->max_pkt_len <= ETHER_MAX_LEN ||\n \t\t\tvf->max_pkt_len > I40E_FRAME_SIZE_MAX) {\n \t\t\tPMD_DRV_LOG(ERR, \"maximum packet length must \"\n-\t\t\t\t\"be larger than %u and smaller than %u,\"\n-\t\t\t\t\t\"as jumbo frame is enabled\\n\",\n-\t\t\t\t\t\t(uint32_t)ETHER_MAX_LEN,\n-\t\t\t\t\t(uint32_t)I40E_FRAME_SIZE_MAX);\n+\t\t\t\t    \"be larger than %u and smaller than %u,\"\n+\t\t\t\t    \"as jumbo frame is enabled\",\n+\t\t\t\t    (uint32_t)ETHER_MAX_LEN,\n+\t\t\t\t    (uint32_t)I40E_FRAME_SIZE_MAX);\n \t\t\treturn I40E_ERR_CONFIG;\n \t\t}\n \t} else {\n \t\tif (vf->max_pkt_len < ETHER_MIN_LEN ||\n \t\t\tvf->max_pkt_len > ETHER_MAX_LEN) {\n \t\t\tPMD_DRV_LOG(ERR, \"maximum packet length must be \"\n-\t\t\t\t\t\"larger than %u and smaller than %u, \"\n-\t\t\t\t\t\"as jumbo frame is disabled\\n\",\n-\t\t\t\t\t\t(uint32_t)ETHER_MIN_LEN,\n-\t\t\t\t\t\t(uint32_t)ETHER_MAX_LEN);\n+\t\t\t\t    \"larger than %u and smaller than %u, \"\n+\t\t\t\t    \"as jumbo frame is disabled\",\n+\t\t\t\t    (uint32_t)ETHER_MIN_LEN,\n+\t\t\t\t    (uint32_t)ETHER_MAX_LEN);\n \t\t\treturn I40E_ERR_CONFIG;\n \t\t}\n \t}\n@@ -1413,18 +1407,18 @@ i40evf_dev_start(struct rte_eth_dev *dev)\n \t\t\t\t\tdev->data->nb_tx_queues);\n \n \tif (i40evf_rx_init(dev) != 0){\n-\t\tPMD_DRV_LOG(ERR, \"failed to do RX init\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to do RX init\");\n \t\treturn -1;\n \t}\n \n \ti40evf_tx_init(dev);\n \n \tif (i40evf_configure_queues(dev) != 0) {\n-\t\tPMD_DRV_LOG(ERR, \"configure queues failed\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"configure queues failed\");\n \t\tgoto err_queue;\n \t}\n \tif (i40evf_config_irq_map(dev)) {\n-\t\tPMD_DRV_LOG(ERR, \"config_irq_map failed\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"config_irq_map failed\");\n \t\tgoto err_queue;\n \t}\n \n@@ -1432,12 +1426,12 @@ i40evf_dev_start(struct rte_eth_dev *dev)\n \t(void)rte_memcpy(mac_addr.addr_bytes, hw->mac.addr,\n \t\t\t\tsizeof(mac_addr.addr_bytes));\n \tif (i40evf_add_mac_addr(dev, &mac_addr)) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to add mac addr\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to add mac addr\");\n \t\tgoto err_queue;\n \t}\n \n \tif (i40evf_start_queues(dev) != 0) {\n-\t\tPMD_DRV_LOG(ERR, \"enable queues failed\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"enable queues failed\");\n \t\tgoto err_mac;\n \t}\n \n@@ -1561,7 +1555,7 @@ i40evf_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n {\n \tmemset(stats, 0, sizeof(*stats));\n \tif (i40evf_get_statics(dev, stats))\n-\t\tPMD_DRV_LOG(ERR, \"Get statics failed\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Get statics failed\");\n }\n \n static void\ndiff --git a/lib/librte_pmd_i40e/i40e_pf.c b/lib/librte_pmd_i40e/i40e_pf.c\nindex eec291f..682ff44 100644\n--- a/lib/librte_pmd_i40e/i40e_pf.c\n+++ b/lib/librte_pmd_i40e/i40e_pf.c\n@@ -158,7 +158,7 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \t}\n \n \tif (i >= VFRESET_MAX_WAIT_CNT) {\n-\t\tPMD_DRV_LOG(ERR, \"VF reset timeout\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"VF reset timeout\");\n \t\treturn -ETIMEDOUT;\n \t}\n \n@@ -171,7 +171,7 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \t\tqsel.tx_queues = qsel.rx_queues;\n \t\tret = i40e_pf_host_switch_queues(vf, &qsel, false);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Disable VF queues failed\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Disable VF queues failed\");\n \t\t\treturn -EFAULT;\n \t\t}\n \n@@ -190,7 +190,7 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \t\t/* remove VSI */\n \t\tret = i40e_vsi_release(vf->vsi);\n \t\tif (ret != I40E_SUCCESS) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Release VSI failed\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Release VSI failed\");\n \t\t\treturn -EFAULT;\n \t\t}\n \t}\n@@ -209,7 +209,7 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \t}\n \n \tif (i >= VFRESET_MAX_WAIT_CNT) {\n-\t\tPMD_DRV_LOG(ERR, \"Wait VF PCI transaction end timeout\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Wait VF PCI transaction end timeout\");\n \t\treturn -ETIMEDOUT;\n \t}\n \n@@ -225,13 +225,13 @@ i40e_pf_host_vf_reset(struct i40e_pf_vf *vf, bool do_hw_reset)\n \tvf->vsi = i40e_vsi_setup(vf->pf, I40E_VSI_SRIOV,\n \t\t\tvf->pf->main_vsi, vf->vf_idx);\n \tif (vf->vsi == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"Add vsi failed\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Add vsi failed\");\n \t\treturn -EFAULT;\n \t}\n \n \tret = i40e_pf_vf_queues_mapping(vf);\n \tif (ret != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"queue mapping error\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"queue mapping error\");\n \t\ti40e_vsi_release(vf->vsi);\n \t\treturn -EFAULT;\n \t}\n@@ -253,7 +253,7 @@ i40e_pf_host_send_msg_to_vf(struct i40e_pf_vf *vf,\n \tret = i40e_aq_send_msg_to_vf(hw, abs_vf_id, opcode, retval,\n \t\t\t\t\t\tmsg, msglen, NULL);\n \tif (ret) {\n-\t\tPMD_INIT_LOG(ERR, \"Fail to send message to VF, err %u\\n\",\n+\t\tPMD_INIT_LOG(ERR, \"Fail to send message to VF, err %u\",\n \t\t\t     hw->aq.asq_last_status);\n \t}\n \n@@ -295,7 +295,7 @@ i40e_pf_host_process_cmd_get_vf_resource(struct i40e_pf_vf *vf)\n \n \tvf_res = rte_zmalloc(\"i40e_vf_res\", len, 0);\n \tif (vf_res == NULL) {\n-\t\tPMD_DRV_LOG(ERR, \"failed to allocate mem\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"failed to allocate mem\");\n \t\tret = I40E_ERR_NO_MEMORY;\n \t\tvf_res = NULL;\n \t\tlen = 0;\n@@ -421,7 +421,7 @@ i40e_pf_host_process_cmd_config_vsi_queues(struct i40e_pf_vf *vf,\n \n \tif (msg == NULL || msglen <= sizeof(*qconfig) ||\n \t\tqconfig->num_queue_pairs > vsi->nb_qps) {\n-\t\tPMD_DRV_LOG(ERR, \"vsi_queue_config_info argument wrong\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"vsi_queue_config_info argument wrong\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -466,20 +466,20 @@ i40e_pf_host_process_cmd_config_irq_map(struct i40e_pf_vf *vf,\n \t    (struct i40e_virtchnl_irq_map_info *)msg;\n \n \tif (msg == NULL || msglen < sizeof(struct i40e_virtchnl_irq_map_info)) {\n-\t\tPMD_DRV_LOG(ERR, \"buffer too short\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"buffer too short\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n \n \t/* Assume VF only have 1 vector to bind all queues */\n \tif (irqmap->num_vectors != 1) {\n-\t\tPMD_DRV_LOG(ERR, \"DKDK host only support 1 vector\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"DKDK host only support 1 vector\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n \n \tif (irqmap->vecmap[0].vector_id == 0) {\n-\t\tPMD_DRV_LOG(ERR, \"DPDK host don't support use IRQ0\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"DPDK host don't support use IRQ0\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -601,7 +601,7 @@ i40e_pf_host_process_cmd_add_ether_address(struct i40e_pf_vf *vf,\n \tstruct ether_addr *mac;\n \n \tif (msg == NULL || msglen <= sizeof(*addr_list)) {\n-\t\tPMD_DRV_LOG(ERR, \"add_ether_address argument too short\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"add_ether_address argument too short\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -634,7 +634,7 @@ i40e_pf_host_process_cmd_del_ether_address(struct i40e_pf_vf *vf,\n \tstruct ether_addr *mac;\n \n \tif (msg == NULL || msglen <= sizeof(*addr_list)) {\n-\t\tPMD_DRV_LOG(ERR, \"delete_ether_address argument too short\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"delete_ether_address argument too short\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -667,7 +667,7 @@ i40e_pf_host_process_cmd_add_vlan(struct i40e_pf_vf *vf,\n \tuint16_t *vid;\n \n \tif (msg == NULL || msglen <= sizeof(*vlan_filter_list)) {\n-\t\tPMD_DRV_LOG(ERR, \"add_vlan argument too short\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"add_vlan argument too short\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -699,7 +699,7 @@ i40e_pf_host_process_cmd_del_vlan(struct i40e_pf_vf *vf,\n \tuint16_t *vid;\n \n \tif (msg == NULL || msglen <= sizeof(*vlan_filter_list)) {\n-\t\tPMD_DRV_LOG(ERR, \"delete_vlan argument too short\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"delete_vlan argument too short\");\n \t\tret = I40E_ERR_PARAM;\n \t\tgoto send_msg;\n \t}\n@@ -796,7 +796,7 @@ i40e_pf_host_process_cmd_cfg_vlan_offload(\n \tret = i40e_vsi_config_vlan_stripping(vf->vsi,\n \t\t\t\t\t\t!!offload->enable_vlan_strip);\n \tif (ret != 0)\n-\t\tPMD_DRV_LOG(ERR, \"Failed to configure vlan stripping\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to configure vlan stripping\");\n \n send_msg:\n \ti40e_pf_host_send_msg_to_vf(vf, I40E_VIRTCHNL_OP_CFG_VLAN_OFFLOAD,\n@@ -842,13 +842,13 @@ i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev,\n \tuint16_t vf_id = abs_vf_id - hw->func_caps.vf_base_id;\n \n \tif (!dev || vf_id > pf->vf_num - 1 || !pf->vfs) {\n-\t\tPMD_DRV_LOG(ERR, \"invalid argument\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"invalid argument\");\n \t\treturn;\n \t}\n \n \tvf = &pf->vfs[vf_id];\n \tif (!vf->vsi) {\n-\t\tPMD_DRV_LOG(ERR, \"NO VSI associated with VF found\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"NO VSI associated with VF found\");\n \t\ti40e_pf_host_send_msg_to_vf(vf, opcode,\n \t\t\tI40E_ERR_NO_AVAILABLE_VSI, NULL, 0);\n \t\treturn;\n@@ -856,82 +856,81 @@ i40e_pf_host_handle_vf_msg(struct rte_eth_dev *dev,\n \n \tswitch (opcode) {\n \tcase I40E_VIRTCHNL_OP_VERSION :\n-\t\tPMD_DRV_LOG(INFO, \"OP_VERSION received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_VERSION received\");\n \t\ti40e_pf_host_process_cmd_version(vf);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_RESET_VF :\n-\t\tPMD_DRV_LOG(INFO, \"OP_RESET_VF received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_RESET_VF received\");\n \t\ti40e_pf_host_process_cmd_reset_vf(vf);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_GET_VF_RESOURCES:\n-\t\tPMD_DRV_LOG(INFO, \"OP_GET_VF_RESOURCES received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_GET_VF_RESOURCES received\");\n \t\ti40e_pf_host_process_cmd_get_vf_resource(vf);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_CONFIG_VSI_QUEUES:\n-\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_VSI_QUEUES received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_VSI_QUEUES received\");\n \t\ti40e_pf_host_process_cmd_config_vsi_queues(vf,\n \t\t\t\t\t\tmsg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_CONFIG_IRQ_MAP:\n-\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_IRQ_MAP received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_IRQ_MAP received\");\n \t\ti40e_pf_host_process_cmd_config_irq_map(vf, msg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_ENABLE_QUEUES:\n-\t\tPMD_DRV_LOG(INFO, \"OP_ENABLE_QUEUES received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_ENABLE_QUEUES received\");\n \t\ti40e_pf_host_process_cmd_enable_queues(vf,\n \t\t\t\t\t\tmsg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_DISABLE_QUEUES:\n-\t\tPMD_DRV_LOG(INFO, \"OP_DISABLE_QUEUE received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_DISABLE_QUEUE received\");\n \t\ti40e_pf_host_process_cmd_disable_queues(vf,\n \t\t\t\t\t\tmsg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_ADD_ETHER_ADDRESS:\n-\t\tPMD_DRV_LOG(INFO, \"OP_ADD_ETHER_ADDRESS received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_ADD_ETHER_ADDRESS received\");\n \t\ti40e_pf_host_process_cmd_add_ether_address(vf,\n \t\t\t\t\t\tmsg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_DEL_ETHER_ADDRESS:\n-\t\tPMD_DRV_LOG(INFO, \"OP_DEL_ETHER_ADDRESS received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_DEL_ETHER_ADDRESS received\");\n \t\ti40e_pf_host_process_cmd_del_ether_address(vf,\n \t\t\t\t\t\tmsg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_ADD_VLAN:\n-\t\tPMD_DRV_LOG(INFO, \"OP_ADD_VLAN received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_ADD_VLAN received\");\n \t\ti40e_pf_host_process_cmd_add_vlan(vf, msg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_DEL_VLAN:\n-\t\tPMD_DRV_LOG(INFO, \"OP_DEL_VLAN received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_DEL_VLAN received\");\n \t\ti40e_pf_host_process_cmd_del_vlan(vf, msg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_CONFIG_PROMISCUOUS_MODE:\n-\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_PROMISCUOUS_MODE received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_CONFIG_PROMISCUOUS_MODE received\");\n \t\ti40e_pf_host_process_cmd_config_promisc_mode(vf, msg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_GET_STATS:\n-\t\tPMD_DRV_LOG(INFO, \"OP_GET_STATS received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_GET_STATS received\");\n \t\ti40e_pf_host_process_cmd_get_stats(vf);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_GET_LINK_STAT:\n-\t\tPMD_DRV_LOG(INFO, \"OP_GET_LINK_STAT received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_GET_LINK_STAT received\");\n \t\ti40e_pf_host_process_cmd_get_link_status(vf);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_CFG_VLAN_OFFLOAD:\n-\t\tPMD_DRV_LOG(INFO, \"OP_CFG_VLAN_OFFLOAD received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_CFG_VLAN_OFFLOAD received\");\n \t\ti40e_pf_host_process_cmd_cfg_vlan_offload(vf, msg, msglen);\n \t\tbreak;\n \tcase I40E_VIRTCHNL_OP_CFG_VLAN_PVID:\n-\t\tPMD_DRV_LOG(INFO, \"OP_CFG_VLAN_PVID received\\n\");\n+\t\tPMD_DRV_LOG(INFO, \"OP_CFG_VLAN_PVID received\");\n \t\ti40e_pf_host_process_cmd_cfg_pvid(vf, msg, msglen);\n \t\tbreak;\n \t /* Don't add command supported below, which will\n \t *  return an error code.\n \t */\n \tcase I40E_VIRTCHNL_OP_FCOE:\n-\t\tPMD_DRV_LOG(ERR, \"OP_FCOE received, not supported\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"OP_FCOE received, not supported\");\n \tdefault:\n-\t\tPMD_DRV_LOG(ERR, \"%u received, not supported\\n\",\n-\t\t\t\t\t\t\topcode);\n+\t\tPMD_DRV_LOG(ERR, \"%u received, not supported\", opcode);\n \t\ti40e_pf_host_send_msg_to_vf(vf, opcode,\n \t\t\t\tI40E_ERR_PARAM, NULL, 0);\n \t\tbreak;\ndiff --git a/lib/librte_pmd_i40e/i40e_rxtx.c b/lib/librte_pmd_i40e/i40e_rxtx.c\nindex 6987200..70fabaa 100644\n--- a/lib/librte_pmd_i40e/i40e_rxtx.c\n+++ b/lib/librte_pmd_i40e/i40e_rxtx.c\n@@ -420,13 +420,13 @@ i40e_txd_enable_checksum(uint32_t ol_flags,\n \t\t\tuint8_t l3_len)\n {\n \tif (!l2_len) {\n-\t\tPMD_DRV_LOG(DEBUG, \"L2 length set to 0\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"L2 length set to 0\");\n \t\treturn;\n \t}\n \t*td_offset |= (l2_len >> 1) << I40E_TX_DESC_LENGTH_MACLEN_SHIFT;\n \n \tif (!l3_len) {\n-\t\tPMD_DRV_LOG(DEBUG, \"L3 length set to 0\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"L3 length set to 0\");\n \t\treturn;\n \t}\n \n@@ -507,7 +507,7 @@ i40e_xmit_cleanup(struct i40e_tx_queue *txq)\n \tif (!(txd[desc_to_clean_to].cmd_type_offset_bsz &\n \t\trte_cpu_to_le_64(I40E_TX_DESC_DTYPE_DESC_DONE))) {\n \t\tPMD_TX_FREE_LOG(DEBUG, \"TX descriptor %4u is not done \"\n-\t\t\t\"(port=%d queue=%d)\", desc_to_clean_to,\n+\t\t\t\t\"(port=%d queue=%d)\", desc_to_clean_to,\n \t\t\t\ttxq->port_id, txq->queue_id);\n \t\treturn -1;\n \t}\n@@ -676,7 +676,7 @@ i40e_rx_alloc_bufs(struct i40e_rx_queue *rxq)\n \tdiag = rte_mempool_get_bulk(rxq->mp, (void *)rxep,\n \t\t\t\t\trxq->rx_free_thresh);\n \tif (unlikely(diag != 0)) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to get mbufs in bulk\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to get mbufs in bulk\");\n \t\treturn -ENOMEM;\n \t}\n \n@@ -729,7 +729,7 @@ rx_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)\n \t\t\tuint16_t i, j;\n \n \t\t\tPMD_RX_LOG(DEBUG, \"Rx mbuf alloc failed for \"\n-\t\t\t\t\t\"port_id=%u, queue_id=%u\\n\",\n+\t\t\t\t\t\"port_id=%u, queue_id=%u\",\n \t\t\t\t\trxq->port_id, rxq->queue_id);\n \t\t\trxq->rx_nb_avail = 0;\n \t\t\trxq->rx_tail = (uint16_t)(rxq->rx_tail - nb_rx);\n@@ -1441,7 +1441,7 @@ i40e_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \n \t\terr = i40e_alloc_rx_queue_mbufs(rxq);\n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate RX queue mbuf\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate RX queue mbuf\");\n \t\t\treturn err;\n \t\t}\n \n@@ -1453,8 +1453,8 @@ i40e_dev_rx_queue_start(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \t\terr = i40e_switch_rx_queue(hw, rx_queue_id + q_base, TRUE);\n \n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u on\\n\",\n-\t\t\t\trx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u on\",\n+\t\t\t\t    rx_queue_id);\n \n \t\t\ti40e_rx_queue_release_mbufs(rxq);\n \t\t\ti40e_reset_rx_queue(rxq);\n@@ -1479,8 +1479,8 @@ i40e_dev_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \t\terr = i40e_switch_rx_queue(hw, rx_queue_id + q_base, FALSE);\n \n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u off\\n\",\n-\t\t\t\trx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch RX queue %u off\",\n+\t\t\t\t    rx_queue_id);\n \t\t\treturn err;\n \t\t}\n \t\ti40e_rx_queue_release_mbufs(rxq);\n@@ -1503,8 +1503,8 @@ i40e_dev_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)\n \tif (tx_queue_id < dev->data->nb_tx_queues) {\n \t\terr = i40e_switch_tx_queue(hw, tx_queue_id + q_base, TRUE);\n \t\tif (err)\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u on\\n\",\n-\t\t\t\ttx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u on\",\n+\t\t\t\t    tx_queue_id);\n \t}\n \n \treturn err;\n@@ -1525,8 +1525,8 @@ i40e_dev_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id)\n \t\terr = i40e_switch_tx_queue(hw, tx_queue_id + q_base, FALSE);\n \n \t\tif (err) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u of\\n\",\n-\t\t\t\ttx_queue_id);\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to switch TX queue %u of\",\n+\t\t\t\t    tx_queue_id);\n \t\t\treturn err;\n \t\t}\n \n@@ -1554,14 +1554,14 @@ i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \n \tif (!vsi || queue_idx >= vsi->nb_qps) {\n \t\tPMD_DRV_LOG(ERR, \"VSI not available or queue \"\n-\t\t\t\t\"index exceeds the maximum\\n\");\n+\t\t\t    \"index exceeds the maximum\");\n \t\treturn I40E_ERR_PARAM;\n \t}\n \tif (((nb_desc * sizeof(union i40e_rx_desc)) % I40E_ALIGN) != 0 ||\n \t\t\t\t\t(nb_desc > I40E_MAX_RING_DESC) ||\n \t\t\t\t\t(nb_desc < I40E_MIN_RING_DESC)) {\n \t\tPMD_DRV_LOG(ERR, \"Number (%u) of receive descriptors is \"\n-\t\t\t\t\t\t\"invalid\\n\", nb_desc);\n+\t\t\t    \"invalid\", nb_desc);\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n@@ -1578,7 +1578,7 @@ i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t socket_id);\n \tif (!rxq) {\n \t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for \"\n-\t\t\t\t\t\"rx queue data structure\\n\");\n+\t\t\t    \"rx queue data structure\");\n \t\treturn (-ENOMEM);\n \t}\n \trxq->mp = mp;\n@@ -1603,7 +1603,7 @@ i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t\tsocket_id);\n \tif (!rz) {\n \t\ti40e_dev_rx_queue_release(rxq);\n-\t\tPMD_DRV_LOG(ERR, \"Failed to reserve DMA memory for RX\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to reserve DMA memory for RX\");\n \t\treturn (-ENOMEM);\n \t}\n \n@@ -1632,7 +1632,7 @@ i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t   socket_id);\n \tif (!rxq->sw_ring) {\n \t\ti40e_dev_rx_queue_release(rxq);\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for SW ring\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for SW ring\");\n \t\treturn (-ENOMEM);\n \t}\n \n@@ -1645,17 +1645,17 @@ i40e_dev_rx_queue_setup(struct rte_eth_dev *dev,\n \tif (!use_def_burst_func && !dev->data->scattered_rx) {\n #ifdef RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC\n \t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions are \"\n-\t\t\t\"satisfied. Rx Burst Bulk Alloc function will be \"\n-\t\t\t\t\t\"used on port=%d, queue=%d.\\n\",\n-\t\t\t\t\trxq->port_id, rxq->queue_id);\n+\t\t\t     \"satisfied. Rx Burst Bulk Alloc function will be \"\n+\t\t\t     \"used on port=%d, queue=%d.\",\n+\t\t\t     rxq->port_id, rxq->queue_id);\n \t\tdev->rx_pkt_burst = i40e_recv_pkts_bulk_alloc;\n #endif /* RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC */\n \t} else {\n \t\tPMD_INIT_LOG(DEBUG, \"Rx Burst Bulk Alloc Preconditions are \"\n-\t\t\t\t\"not satisfied, Scattered Rx is requested, \"\n-\t\t\t\t\"or RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC is \"\n-\t\t\t\t\t\"not enabled on port=%d, queue=%d.\\n\",\n-\t\t\t\t\t\trxq->port_id, rxq->queue_id);\n+\t\t\t     \"not satisfied, Scattered Rx is requested, \"\n+\t\t\t     \"or RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC is \"\n+\t\t\t     \"not enabled on port=%d, queue=%d.\",\n+\t\t\t     rxq->port_id, rxq->queue_id);\n \t}\n \n \treturn 0;\n@@ -1667,7 +1667,7 @@ i40e_dev_rx_queue_release(void *rxq)\n \tstruct i40e_rx_queue *q = (struct i40e_rx_queue *)rxq;\n \n \tif (!q) {\n-\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq is NULL\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq is NULL\");\n \t\treturn;\n \t}\n \n@@ -1685,7 +1685,7 @@ i40e_dev_rx_queue_count(struct rte_eth_dev *dev, uint16_t rx_queue_id)\n \tuint16_t desc = 0;\n \n \tif (unlikely(rx_queue_id >= dev->data->nb_rx_queues)) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid RX queue id %u\\n\", rx_queue_id);\n+\t\tPMD_DRV_LOG(ERR, \"Invalid RX queue id %u\", rx_queue_id);\n \t\treturn 0;\n \t}\n \n@@ -1719,7 +1719,7 @@ i40e_dev_rx_descriptor_done(void *rx_queue, uint16_t offset)\n \tint ret;\n \n \tif (unlikely(offset >= rxq->nb_rx_desc)) {\n-\t\tPMD_DRV_LOG(ERR, \"Invalid RX queue id %u\\n\", offset);\n+\t\tPMD_DRV_LOG(ERR, \"Invalid RX queue id %u\", offset);\n \t\treturn 0;\n \t}\n \n@@ -1751,7 +1751,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \n \tif (!vsi || queue_idx >= vsi->nb_qps) {\n \t\tPMD_DRV_LOG(ERR, \"VSI is NULL, or queue index (%u) \"\n-\t\t\t\t\"exceeds the maximum\\n\", queue_idx);\n+\t\t\t    \"exceeds the maximum\", queue_idx);\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n@@ -1759,7 +1759,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t\t(nb_desc > I40E_MAX_RING_DESC) ||\n \t\t\t\t\t(nb_desc < I40E_MIN_RING_DESC)) {\n \t\tPMD_DRV_LOG(ERR, \"Number (%u) of transmit descriptors is \"\n-                                                \"invalid\\n\", nb_desc);\n+\t\t\t    \"invalid\", nb_desc);\n \t\treturn I40E_ERR_PARAM;\n \t}\n \n@@ -1790,7 +1790,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \tif (tx_rs_thresh >= (nb_desc - 2)) {\n \t\tPMD_INIT_LOG(ERR, \"tx_rs_thresh must be less than the \"\n \t\t\t     \"number of TX descriptors minus 2. \"\n-\t\t\t     \"(tx_rs_thresh=%u port=%d queue=%d)\\n\",\n+\t\t\t     \"(tx_rs_thresh=%u port=%d queue=%d)\",\n \t\t\t     (unsigned int)tx_rs_thresh,\n \t\t\t     (int)dev->data->port_id,\n \t\t\t     (int)queue_idx);\n@@ -1800,7 +1800,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t\tPMD_INIT_LOG(ERR, \"tx_rs_thresh must be less than the \"\n \t\t\t     \"tx_free_thresh must be less than the \"\n \t\t\t     \"number of TX descriptors minus 3. \"\n-\t\t\t     \"(tx_free_thresh=%u port=%d queue=%d)\\n\",\n+\t\t\t     \"(tx_free_thresh=%u port=%d queue=%d)\",\n \t\t\t     (unsigned int)tx_free_thresh,\n \t\t\t     (int)dev->data->port_id,\n \t\t\t     (int)queue_idx);\n@@ -1809,7 +1809,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \tif (tx_rs_thresh > tx_free_thresh) {\n \t\tPMD_INIT_LOG(ERR, \"tx_rs_thresh must be less than or \"\n \t\t\t     \"equal to tx_free_thresh. (tx_free_thresh=%u\"\n-\t\t\t     \" tx_rs_thresh=%u port=%d queue=%d)\\n\",\n+\t\t\t     \" tx_rs_thresh=%u port=%d queue=%d)\",\n \t\t\t     (unsigned int)tx_free_thresh,\n \t\t\t     (unsigned int)tx_rs_thresh,\n \t\t\t     (int)dev->data->port_id,\n@@ -1819,7 +1819,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \tif ((nb_desc % tx_rs_thresh) != 0) {\n \t\tPMD_INIT_LOG(ERR, \"tx_rs_thresh must be a divisor of the \"\n \t\t\t     \"number of TX descriptors. (tx_rs_thresh=%u\"\n-\t\t\t     \" port=%d queue=%d)\\n\",\n+\t\t\t     \" port=%d queue=%d)\",\n \t\t\t     (unsigned int)tx_rs_thresh,\n \t\t\t     (int)dev->data->port_id,\n \t\t\t     (int)queue_idx);\n@@ -1828,7 +1828,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \tif ((tx_rs_thresh > 1) && (tx_conf->tx_thresh.wthresh != 0)) {\n \t\tPMD_INIT_LOG(ERR, \"TX WTHRESH must be set to 0 if \"\n \t\t\t     \"tx_rs_thresh is greater than 1. \"\n-\t\t\t     \"(tx_rs_thresh=%u port=%d queue=%d)\\n\",\n+\t\t\t     \"(tx_rs_thresh=%u port=%d queue=%d)\",\n \t\t\t     (unsigned int)tx_rs_thresh,\n \t\t\t     (int)dev->data->port_id,\n \t\t\t     (int)queue_idx);\n@@ -1848,7 +1848,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t  socket_id);\n \tif (!txq) {\n \t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for \"\n-\t\t\t\t\t\"tx queue structure\\n\");\n+\t\t\t    \"tx queue structure\");\n \t\treturn (-ENOMEM);\n \t}\n \n@@ -1862,7 +1862,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t\tsocket_id);\n \tif (!tz) {\n \t\ti40e_dev_tx_queue_release(txq);\n-\t\tPMD_DRV_LOG(ERR, \"Failed to reserve DMA memory for TX\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to reserve DMA memory for TX\");\n \t\treturn (-ENOMEM);\n \t}\n \n@@ -1894,7 +1894,7 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t\t\t\t   socket_id);\n \tif (!txq->sw_ring) {\n \t\ti40e_dev_tx_queue_release(txq);\n-\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for SW TX ring\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to allocate memory for SW TX ring\");\n \t\treturn (-ENOMEM);\n \t}\n \n@@ -1905,10 +1905,10 @@ i40e_dev_tx_queue_setup(struct rte_eth_dev *dev,\n \t/* Use a simple TX queue without offloads or multi segs if possible */\n \tif (((txq->txq_flags & I40E_SIMPLE_FLAGS) == I40E_SIMPLE_FLAGS) &&\n \t\t\t\t(txq->tx_rs_thresh >= I40E_TX_MAX_BURST)) {\n-\t\tPMD_INIT_LOG(INFO, \"Using simple tx path\\n\");\n+\t\tPMD_INIT_LOG(INFO, \"Using simple tx path\");\n \t\tdev->tx_pkt_burst = i40e_xmit_pkts_simple;\n \t} else {\n-\t\tPMD_INIT_LOG(INFO, \"Using full-featured tx path\\n\");\n+\t\tPMD_INIT_LOG(INFO, \"Using full-featured tx path\");\n \t\tdev->tx_pkt_burst = i40e_xmit_pkts;\n \t}\n \n@@ -1921,7 +1921,7 @@ i40e_dev_tx_queue_release(void *txq)\n \tstruct i40e_tx_queue *q = (struct i40e_tx_queue *)txq;\n \n \tif (!q) {\n-\t\tPMD_DRV_LOG(DEBUG, \"Pointer to TX queue is NULL\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"Pointer to TX queue is NULL\");\n \t\treturn;\n \t}\n \n@@ -1962,7 +1962,7 @@ i40e_rx_queue_release_mbufs(struct i40e_rx_queue *rxq)\n \tuint16_t i;\n \n \tif (!rxq || !rxq->sw_ring) {\n-\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq or sw_ring is NULL\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq or sw_ring is NULL\");\n \t\treturn;\n \t}\n \n@@ -2022,7 +2022,7 @@ i40e_tx_queue_release_mbufs(struct i40e_tx_queue *txq)\n \tuint16_t i;\n \n \tif (!txq || !txq->sw_ring) {\n-\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq or sw_ring is NULL\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"Pointer to rxq or sw_ring is NULL\");\n \t\treturn;\n \t}\n \n@@ -2041,7 +2041,7 @@ i40e_reset_tx_queue(struct i40e_tx_queue *txq)\n \tuint16_t i, prev, size;\n \n \tif (!txq) {\n-\t\tPMD_DRV_LOG(DEBUG, \"Pointer to txq is NULL\\n\");\n+\t\tPMD_DRV_LOG(DEBUG, \"Pointer to txq is NULL\");\n \t\treturn;\n \t}\n \n@@ -2092,13 +2092,13 @@ i40e_tx_queue_init(struct i40e_tx_queue *txq)\n \n \terr = i40e_clear_lan_tx_queue_context(hw, pf_q);\n \tif (err != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failure of clean lan tx queue context\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failure of clean lan tx queue context\");\n \t\treturn err;\n \t}\n \n \terr = i40e_set_lan_tx_queue_context(hw, pf_q, &tx_ctx);\n \tif (err != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failure of set lan tx queue context\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failure of set lan tx queue context\");\n \t\treturn err;\n \t}\n \n@@ -2126,7 +2126,7 @@ i40e_alloc_rx_queue_mbufs(struct i40e_rx_queue *rxq)\n \t\tstruct rte_mbuf *mbuf = rte_rxmbuf_alloc(rxq->mp);\n \n \t\tif (unlikely(!mbuf)) {\n-\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate mbuf for RX\\n\");\n+\t\t\tPMD_DRV_LOG(ERR, \"Failed to allocate mbuf for RX\");\n \t\t\treturn -ENOMEM;\n \t\t}\n \n@@ -2194,20 +2194,20 @@ i40e_rx_queue_config(struct i40e_rx_queue *rxq)\n \t\tif (rxq->max_pkt_len <= ETHER_MAX_LEN ||\n \t\t\trxq->max_pkt_len > I40E_FRAME_SIZE_MAX) {\n \t\t\tPMD_DRV_LOG(ERR, \"maximum packet length must \"\n-\t\t\t\t\"be larger than %u and smaller than %u,\"\n-\t\t\t\t\t\"as jumbo frame is enabled\\n\",\n-\t\t\t\t\t\t(uint32_t)ETHER_MAX_LEN,\n-\t\t\t\t\t(uint32_t)I40E_FRAME_SIZE_MAX);\n+\t\t\t\t    \"be larger than %u and smaller than %u,\"\n+\t\t\t\t    \"as jumbo frame is enabled\",\n+\t\t\t\t    (uint32_t)ETHER_MAX_LEN,\n+\t\t\t\t    (uint32_t)I40E_FRAME_SIZE_MAX);\n \t\t\treturn I40E_ERR_CONFIG;\n \t\t}\n \t} else {\n \t\tif (rxq->max_pkt_len < ETHER_MIN_LEN ||\n \t\t\trxq->max_pkt_len > ETHER_MAX_LEN) {\n \t\t\tPMD_DRV_LOG(ERR, \"maximum packet length must be \"\n-\t\t\t\t\t\"larger than %u and smaller than %u, \"\n-\t\t\t\t\t\"as jumbo frame is disabled\\n\",\n-\t\t\t\t\t\t(uint32_t)ETHER_MIN_LEN,\n-\t\t\t\t\t\t(uint32_t)ETHER_MAX_LEN);\n+\t\t\t\t    \"larger than %u and smaller than %u, \"\n+\t\t\t\t    \"as jumbo frame is disabled\",\n+\t\t\t\t    (uint32_t)ETHER_MIN_LEN,\n+\t\t\t\t    (uint32_t)ETHER_MAX_LEN);\n \t\t\treturn I40E_ERR_CONFIG;\n \t\t}\n \t}\n@@ -2230,7 +2230,7 @@ i40e_rx_queue_init(struct i40e_rx_queue *rxq)\n \n \terr = i40e_rx_queue_config(rxq);\n \tif (err < 0) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to config RX queue\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to config RX queue\");\n \t\treturn err;\n \t}\n \n@@ -2262,12 +2262,12 @@ i40e_rx_queue_init(struct i40e_rx_queue *rxq)\n \n \terr = i40e_clear_lan_rx_queue_context(hw, pf_q);\n \tif (err != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to clear LAN RX queue context\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to clear LAN RX queue context\");\n \t\treturn err;\n \t}\n \terr = i40e_set_lan_rx_queue_context(hw, pf_q, &rx_ctx);\n \tif (err != I40E_SUCCESS) {\n-\t\tPMD_DRV_LOG(ERR, \"Failed to set LAN RX queue context\\n\");\n+\t\tPMD_DRV_LOG(ERR, \"Failed to set LAN RX queue context\");\n \t\treturn err;\n \t}\n \n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "09/17"
    ]
}