diff options
Diffstat (limited to 'logging.h')
-rw-r--r-- | logging.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |