DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] log: remove app path from syslog id
@ 2013-09-30  8:43 Thomas Monjalon
       [not found] ` <201309301057.16186.thomas.monjalon@6wind.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2013-09-30  8:43 UTC (permalink / raw)
  To: dev

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>
---
 lib/librte_eal/linuxapp/eal/eal.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c
index 6086ca4..aa86b9c 100644
--- a/lib/librte_eal/linuxapp/eal/eal.c
+++ b/lib/librte_eal/linuxapp/eal/eal.c
@@ -829,10 +829,14 @@ rte_eal_init(int argc, char **argv)
 	pthread_t thread_id;
 	static rte_atomic32_t run_once = RTE_ATOMIC32_INIT(0);
 	struct shared_driver *solib = NULL;
+	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)
@@ -884,7 +888,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(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)
-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] log: remove app path from syslog id
       [not found]   ` <20130930114056.14e72f25@nehalam.linuxnetplumber.net>
@ 2013-09-30 21:49     ` Stephen Hemminger
  2013-10-09 21:06       ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2013-09-30 21:49 UTC (permalink / raw)
  To: dev

On Mon, 30 Sep 2013 11:40:56 -0700
Stephen Hemminger <stephen@networkplumber.org> wrote:

> On Mon, 30 Sep 2013 10:57:16 +0200
> Thomas Monjalon <thomas.monjalon@6wind.com> wrote:
> 
> > Hi Stephen,
> > 
> > 30/09/2013 10:43, Thomas Monjalon :
> > > This reverts commit "log: get full path as syslog id" (494a02537f1)
> > > and restore the original patch from Stephen Hemminger (04210699eee).
> > 
> > Is this patch OK for you ?
> > Would you like to ack it ?
> > 
> > Thanks
> 
> Acked-by: Stephen Hemminger <stephen@networkplumber.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] log: remove app path from syslog id
  2013-09-30 21:49     ` Stephen Hemminger
@ 2013-10-09 21:06       ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2013-10-09 21:06 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: dev

30/09/2013 14:49, Stephen Hemminger :
> 30/09/2013 10:43, Thomas Monjalon :
> > This reverts commit "log: get full path as syslog id" (494a02537f1)
> > and restore the original patch from Stephen Hemminger (04210699eee).
> 
> Acked-by: Stephen Hemminger <stephen@networkplumber.org>

I have forgotten this commit in release 1.5.0r1.

It is now pushed to 1.4.1 and 1.5.0 branches.

-- 
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-09 21:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-30  8:43 [dpdk-dev] [PATCH] log: remove app path from syslog id Thomas Monjalon
     [not found] ` <201309301057.16186.thomas.monjalon@6wind.com>
     [not found]   ` <20130930114056.14e72f25@nehalam.linuxnetplumber.net>
2013-09-30 21:49     ` Stephen Hemminger
2013-10-09 21:06       ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).