]> git.droids-corp.org - dpdk.git/commitdiff
net/ring: add missing newlines in logs
authorThomas Monjalon <thomas@monjalon.net>
Thu, 6 Jul 2017 15:47:50 +0000 (17:47 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Jul 2017 08:09:13 +0000 (11:09 +0300)
Some logs are missing the newline character \n.

The logs using only one line can be checked with this command:
git grep 'RTE_LOG(.*".*[^n]"' drivers/net/ring/

Fixes: 61934c0956d4 ("ring: convert to use of PMD_REGISTER_DRIVER and fix linking")
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
drivers/net/ring/rte_eth_ring.c

index 820a41104a9e6a5143df319013fe5a1269c87116..464d3d384288b021f5a6012d8629820d17154b09 100644 (file)
@@ -494,7 +494,8 @@ static int parse_kvlist (const char *key __rte_unused, const char *value, void *
 
        node = strchr(name, ':');
        if (!node) {
-               RTE_LOG(WARNING, PMD, "could not parse node value from %s", name);
+               RTE_LOG(WARNING, PMD, "could not parse node value from %s\n",
+                       name);
                goto out;
        }
 
@@ -503,7 +504,8 @@ static int parse_kvlist (const char *key __rte_unused, const char *value, void *
 
        action = strchr(node, ':');
        if (!action) {
-               RTE_LOG(WARNING, PMD, "could not action value from %s", node);
+               RTE_LOG(WARNING, PMD, "could not parse action value from %s\n",
+                       node);
                goto out;
        }