From e436917d9c7a157d62510fee9a4f80c1f3f77abf Mon Sep 17 00:00:00 2001 From: "olh@suse.de" Date: Wed, 24 Sep 2003 20:56:17 -0700 Subject: [PATCH] [PATCH] print udev pid makes debugging easier. --- logging.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/logging.c b/logging.c index e074b1562..1ca3aed1a 100644 --- a/logging.c +++ b/logging.c @@ -21,16 +21,22 @@ */ #include +#include +#include +#include #include #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; }