linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] print udev pid
@ 2003-08-19 13:34 Olaf Hering
  0 siblings, 0 replies; 2+ messages in thread
From: Olaf Hering @ 2003-08-19 13:34 UTC (permalink / raw)
  To: linux-hotplug


makes debugging easier.


--- logging.c
+++ logging.c	2003/08/16 22:11:04
@@ -21,16 +21,22 @@
  */
 
 #include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <unistd.h>
 #include <syslog.h>
 #include "udev.h"
 
 #ifdef DEBUG
 
 static int logging_init = 0;
+static unsigned char udev_logname[42];
 
 static void init_logging (void)
 {
-	openlog ("udev", 0, LOG_DAEMON);
+	snprintf(udev_logname,42,"udev[%d]", getpid());
+
+	openlog (udev_logname, 0, LOG_DAEMON);
 	logging_init = 1;
 }
 
 
-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, n√úRNBERG


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: [PATCH] print udev pid
@ 2003-09-24 19:57 Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-09-24 19:57 UTC (permalink / raw)
  To: linux-hotplug

On Tue, Aug 19, 2003 at 03:34:48PM +0200, Olaf Hering wrote:
> 
> makes debugging easier.

Sorry for the long delay.  Hopefully I can do more udev hacking soon.

Applied, thanks.

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2003-09-24 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-19 13:34 [PATCH] print udev pid Olaf Hering
  -- strict thread matches above, loose matches on Subject: below --
2003-09-24 19:57 Greg KH

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).