mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
[PATCH] print udev pid
makes debugging easier.
This commit is contained in:
parent
99bec17497
commit
e436917d9c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user