summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-03 14:56:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-03 14:56:54 +0200
commitd4f687c013a18010fdc2ddf937fad064343e635a (patch)
tree4b1459b704d939d2afbc4a47222c7df3d05cd960 /extras
parent3ab8ebf572cced0a63f8ba915d8494ef1784803d (diff)
vol_id: fix logging glue
Diffstat (limited to 'extras')
-rw-r--r--extras/volume_id/vol_id.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/volume_id/vol_id.c b/extras/volume_id/vol_id.c
index 19aa0bd3c2..2b487d0b3c 100644
--- a/extras/volume_id/vol_id.c
+++ b/extras/volume_id/vol_id.c
@@ -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;
}