From dacd994fda3fadeb1fa01accbd37d61d0359e0ee Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 14 Nov 2014 20:46:11 -0500 Subject: udev: switch to systemd logging functions Signed-off-by: Anthony G. Basile --- src/cdrom_id/cdrom_id.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/cdrom_id') diff --git a/src/cdrom_id/cdrom_id.c b/src/cdrom_id/cdrom_id.c index e13657b495..bc478c5c35 100644 --- a/src/cdrom_id/cdrom_id.c +++ b/src/cdrom_id/cdrom_id.c @@ -41,14 +41,6 @@ #include "libudev.h" #include "libudev-private.h" -_printf_(6,0) -static void log_fn(struct udev *udev, int priority, - const char *file, int line, const char *fn, - const char *format, va_list args) -{ - log_metav(priority, file, line, fn, format, args); -} - /* device info */ static unsigned int cd_cd_rom; static unsigned int cd_cd_r; @@ -878,8 +870,6 @@ int main(int argc, char *argv[]) if (udev == NULL) goto exit; - udev_set_log_fn(udev, log_fn); - while (1) { int option; @@ -900,7 +890,6 @@ int main(int argc, char *argv[]) case 'd': log_set_target(LOG_TARGET_CONSOLE); log_set_max_level(LOG_DEBUG); - udev_set_log_priority(udev, LOG_DEBUG); log_open(); break; case 'h': -- cgit v1.2.3-54-g00ecf