From: Intel Date: Mon, 3 Jun 2013 00:00:00 +0000 (+0000) Subject: log: get full path as syslog id X-Git-Tag: spdx-start~11257 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=494a02537f1;p=dpdk.git log: get full path as syslog id It partially reverts commit 04210699eee. Signed-off-by: Intel --- diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index c0e50f9b78..a51f86fd66 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -782,14 +782,10 @@ rte_eal_init(int argc, char **argv) int i, fctret, ret; pthread_t thread_id; static rte_atomic32_t run_once = RTE_ATOMIC32_INIT(0); - const char *logid; if (!rte_atomic32_test_and_set(&run_once)) return -1; - logid = strrchr(argv[0], '/'); - logid = strdup(logid ? logid + 1: argv[0]); - thread_id = pthread_self(); if (rte_eal_log_early_init() < 0) @@ -830,7 +826,7 @@ rte_eal_init(int argc, char **argv) if (rte_eal_tailqs_init() < 0) rte_panic("Cannot init tail queues for objects\n"); - if (rte_eal_log_init(logid, internal_config.syslog_facility) < 0) + if (rte_eal_log_init(argv[0], internal_config.syslog_facility) < 0) rte_panic("Cannot init logs\n"); if (rte_eal_alarm_init() < 0)