meson: libudev_core and udevadm should have LOG_REALM=LOG_REALM_UDEV (#7666)
authorFranck Bui <fbui@suse.com>
Sat, 16 Dec 2017 08:36:36 +0000 (09:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 16 Dec 2017 08:36:36 +0000 (09:36 +0100)
Otherwise, setting udev_log=debug in /etc/udev/udev.conf has no effects since
systemd-udevd is built with LOG_REALM=LOG_REALM_UDEV.

However using LOG_REALM_UDEV (for libudev_core) reveals another similar bug for
udevadm which should also define LOG_REALM_UDEV.

meson.build
src/udev/meson.build

index 9f0a0f9..11b73bc 100644 (file)
@@ -2275,6 +2275,7 @@ public_programs += [exe]
 
 exe = executable('udevadm',
                  udevadm_sources,
+                 c_args : ['-DLOG_REALM=LOG_REALM_UDEV'],
                  include_directories : includes,
                  link_with : [libudev_core,
                               libsystemd_network,
index d01cf8f..3b2c7b5 100644 (file)
@@ -130,6 +130,7 @@ libudev_core = static_library(
         link_config_gperf_c,
         keyboard_keys_from_name_h,
         include_directories : libudev_core_includes,
+        c_args : ['-DLOG_REALM=LOG_REALM_UDEV'],
         link_with : udev_link_with,
         dependencies : [libblkid, libkmod])