summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2017-12-16 09:36:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-12-16 09:36:36 +0100
commit6671e818e93ee1b3caf071d3aff284fb8fa85f00 (patch)
treef77a32345ca6645706263addf35d9bd9a2534e3b
parent8769525f5724a184d70be8f578871753529bd04b (diff)
downloadsystemd-6671e818e93ee1b3caf071d3aff284fb8fa85f00.tar.gz
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.
-rw-r--r--meson.build1
-rw-r--r--src/udev/meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 9f0a0f97f1..11b73bcb19 100644
--- a/meson.build
+++ b/meson.build
@@ -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,
diff --git a/src/udev/meson.build b/src/udev/meson.build
index d01cf8f194..3b2c7b5e12 100644
--- a/src/udev/meson.build
+++ b/src/udev/meson.build
@@ -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])