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] fix problem where usb devices can be either the main device or the interface
[elogind.git]
/
udevsend.c
diff --git
a/udevsend.c
b/udevsend.c
index b2fbcbbca6f20139bbf6312703f34623fd7670cf..c738fe22459fc55e43211236e9125d3b18963b48 100644
(file)
--- a/
udevsend.c
+++ b/
udevsend.c
@@
-40,12
+40,17
@@
#include "udevd.h"
#include "logging.h"
#include "udevd.h"
#include "logging.h"
+#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 inline char *get_action(void)
{
static inline char *get_action(void)
{