summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0ee8fe2)
This reverts commit "log: get full path as syslog id" (
494a02537f1)
and restore the original patch from Stephen Hemminger (
04210699eee).
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
pthread_t thread_id;
static rte_atomic32_t run_once = RTE_ATOMIC32_INIT(0);
struct shared_driver *solib = NULL;
pthread_t thread_id;
static rte_atomic32_t run_once = RTE_ATOMIC32_INIT(0);
struct shared_driver *solib = NULL;
if (!rte_atomic32_test_and_set(&run_once))
return -1;
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)
thread_id = pthread_self();
if (rte_eal_log_early_init() < 0)
rte_panic("Cannot init IVSHMEM objects\n");
#endif
rte_panic("Cannot init IVSHMEM objects\n");
#endif
- if (rte_eal_log_init(argv[0], internal_config.syslog_facility) < 0)
+ if (rte_eal_log_init(logid, internal_config.syslog_facility) < 0)
rte_panic("Cannot init logs\n");
if (rte_eal_alarm_init() < 0)
rte_panic("Cannot init logs\n");
if (rte_eal_alarm_init() < 0)