X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=logging.h;h=5ae228b139fa778379ac0e03011b44adfd1bd60c;hb=4d803d8d04a8493f8efc039c7789c65be33048a0;hp=485209adf3a553595207e9fc4150df3ed77fe334;hpb=da92f46b9e86643e70861bb705453f81aef5618d;p=elogind.git diff --git a/logging.h b/logging.h index 485209adf..5ae228b13 100644 --- a/logging.h +++ b/logging.h @@ -34,6 +34,9 @@ #include #include +#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);