app: remove extra new line after link duplex
authorIvan Dyukov <i.dyukov@samsung.com>
Thu, 7 May 2020 18:26:01 +0000 (21:26 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 12 May 2020 02:07:22 +0000 (04:07 +0200)
This is testpmd part of new line cleanup.

Fixes: 002ade70e9 ("app/test: measure cycles per packet in Rx/Tx")
Fixes: ce8d561418 ("app/testpmd: add port configuration settings")
Cc: stable@dpdk.org
Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
app/test-pmd/testpmd.c
app/test/test_pmd_perf.c

index 4b13bf6..9cbe6e9 100644 (file)
@@ -3012,7 +3012,7 @@ check_all_ports_link_status(uint32_t port_mask)
                                        "Port%d Link Up. speed %u Mbps- %s\n",
                                        portid, link.link_speed,
                                (link.link_duplex == ETH_LINK_FULL_DUPLEX) ?
-                                       ("full-duplex") : ("half-duplex\n"));
+                                       ("full-duplex") : ("half-duplex"));
                                else
                                        printf("Port %d Link Down\n", portid);
                                continue;
index d61be58..352cd47 100644 (file)
@@ -151,7 +151,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
                                        "Port%d Link Up. Speed %u Mbps - %s\n",
                                                portid, link.link_speed,
                                (link.link_duplex == ETH_LINK_FULL_DUPLEX) ?
-                                       ("full-duplex") : ("half-duplex\n"));
+                                       ("full-duplex") : ("half-duplex"));
                                        if (link_mbps == 0)
                                                link_mbps = link.link_speed;
                                } else