chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udev - add %s{filename} to man page
[elogind.git]
/
udevd.c
diff --git
a/udevd.c
b/udevd.c
index 14616b9824e16dd509f74ce00c0996b2624c0119..f7901cb7529ca39a3873bf6bd561acd801040194 100644
(file)
--- a/
udevd.c
+++ b/
udevd.c
@@
-51,12
+51,17
@@
LIST_HEAD(running_list);
static void exec_queue_manager(void);
static void msg_queue_manager(void);
static void exec_queue_manager(void);
static void msg_queue_manager(void);
+#ifdef LOG
unsigned char logname[42];
unsigned char logname[42];
-
-int log_ok(void)
+void log_message (int level, const char *format, ...)
{
{
- return 1;
+ va_list args;
+
+ va_start(args, format);
+ vsyslog(level, format, args);
+ va_end(args);
}
}
+#endif
static void msg_dump_queue(void)
{
static void msg_dump_queue(void)
{
@@
-323,6
+328,7
@@
int main(int argc, char *argv[])
struct sigaction act;
init_logging("udevd");
struct sigaction act;
init_logging("udevd");
+ dbg("version %s", UDEV_VERSION);
if (getuid() != 0) {
dbg("need to be root, exit");
if (getuid() != 0) {
dbg("need to be root, exit");