chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99bec17
)
[PATCH] print udev pid
author
olh@suse.de
<olh@suse.de>
Thu, 25 Sep 2003 03:56:17 +0000
(20:56 -0700)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:01:40 +0000
(21:01 -0700)
makes debugging easier.
logging.c
patch
|
blob
|
history
diff --git
a/logging.c
b/logging.c
index e074b1562cc2b33f12ea07640d8a08cc9b3048d6..1ca3aed1a9f509477537164cd43f9dd33db548a5 100644
(file)
--- a/
logging.c
+++ b/
logging.c
@@
-21,16
+21,22
@@
*/
#include <stdarg.h>
*/
#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;
#include <syslog.h>
#include "udev.h"
#ifdef DEBUG
static int logging_init = 0;
+static unsigned char udev_logname[42];
static void init_logging (void)
{
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;
}
logging_init = 1;
}