summaryrefslogtreecommitdiff
path: root/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'logging.h')
-rw-r--r--logging.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/logging.h b/logging.h
index 485209adf3..5ae228b139 100644
--- a/logging.h
+++ b/logging.h
@@ -34,6 +34,9 @@
#include <unistd.h>
#include <syslog.h>
+#include "udev.h"
+#include "udev_version.h"
+
#undef info
#define info(format, arg...) \
do { \
@@ -63,6 +66,9 @@ static inline void log_message (int level, const char *format, ...)
{
va_list args;
+ if (0 != strncmp(udev_log_str, UDEV_LOG_DEFAULT, BOOL_SIZE))
+ return;
+
va_start(args, format);
vsyslog(level, format, args);
va_end(args);