From: Olaf Hering <olh@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] print udev pid
Date: Tue, 19 Aug 2003 13:34:48 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-106130013831498@msgid-missing> (raw)
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
next reply other threads:[~2003-08-19 13:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-19 13:34 Olaf Hering [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-09-24 19:57 [PATCH] print udev pid Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-106130013831498@msgid-missing \
--to=olh@suse.de \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.