eal: remove redundant newline in alert message
authorDavid Marchand <david.marchand@redhat.com>
Wed, 10 Jun 2020 14:30:24 +0000 (16:30 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jun 2020 23:18:29 +0000 (01:18 +0200)
rte_eal_init_alert() already appends a newline.

Fixes: 0a529578f162 ("eal: clean up unused files on initialization")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/freebsd/eal.c
lib/librte_eal/linux/eal.c

index c41f265..00fc66b 100644 (file)
@@ -952,7 +952,7 @@ rte_eal_init(int argc, char **argv)
         * place, so no cleanup needed.
         */
        if (!internal_config.no_shconf && eal_clean_runtime_dir() < 0) {
-               rte_eal_init_alert("Cannot clear runtime directory\n");
+               rte_eal_init_alert("Cannot clear runtime directory");
                return -1;
        }
        if (!internal_config.no_telemetry) {
index f162124..28a8b78 100644 (file)
@@ -1290,7 +1290,7 @@ rte_eal_init(int argc, char **argv)
         * place, so no cleanup needed.
         */
        if (!internal_config.no_shconf && eal_clean_runtime_dir() < 0) {
-               rte_eal_init_alert("Cannot clear runtime directory\n");
+               rte_eal_init_alert("Cannot clear runtime directory");
                return -1;
        }
        if (!internal_config.no_telemetry) {