From d4f687c013a18010fdc2ddf937fad064343e635a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 3 Oct 2008 14:56:54 +0200 Subject: [PATCH] vol_id: fix logging glue --- extras/volume_id/vol_id.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extras/volume_id/vol_id.c b/extras/volume_id/vol_id.c index 19aa0bd3..2b487d0b 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; } -- 2.39.5