summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/udevinfo.c b/udevinfo.c
index ccc3e58e2b..3fb37b41e9 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -36,12 +36,15 @@
#ifdef USE_LOG
-void log_message (int level, const char *format, ...)
+void log_message (int priority, const char *format, ...)
{
va_list args;
+ if (priority > udev_log_priority)
+ return;
+
va_start(args, format);
- vsyslog(level, format, args);
+ vsyslog(priority, format, args);
va_end(args);
}
#endif