meson: libudev_core and udevadm should have LOG_REALM=LOG_REALM_UDEV (#7666)

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.
This commit is contained in:
Franck Bui 2017-12-16 09:36:36 +01:00 committed by Zbigniew Jędrzejewski-Szmek
parent 8769525f57
commit 6671e818e9
2 changed files with 2 additions and 0 deletions

View 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,

View 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])