]> err.no Git - systemd/commitdiff
vol_id: fix logging glue
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 3 Oct 2008 12:56:54 +0000 (14:56 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 3 Oct 2008 12:56:54 +0000 (14:56 +0200)
extras/volume_id/vol_id.c

index 19aa0bd3c25d1e0de47735f1894cbd956225721b..2b487d0b3c51f635862a094ac8c56d46020dd5e0 100644 (file)
@@ -57,8 +57,10 @@ static void vid_log(int priority, const char *file, int line, const char *format
 {
        va_list args;
 
+       if (priority > udev_get_log_priority(udev_ctx))
+               return;
        va_start(args, format);
-       udev_log(udev_ctx, priority, file, line, NULL, format, args);
+       log_fn(udev_ctx, priority, file, line, NULL, format, args);
        va_end(args);
        return;
 }