From: Kay Sievers Date: Fri, 3 Oct 2008 12:56:54 +0000 (+0200) Subject: vol_id: fix logging glue X-Git-Tag: 174~1485 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f687c013a18010fdc2ddf937fad064343e635a;p=systemd vol_id: fix logging glue --- 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; }