summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-05-11 14:25:07 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-05-12 02:49:45 +0200
commitc1db424db507d5f5d9376e485130c58aacdcce58 (patch)
tree22a42e85e84eb2f7af5c71a2bd0ec7bcbbdfb106 /src/udev
parentdebug-generator: Allow specifying name of unit-dropin credential (diff)
downloadsystemd-c1db424db507d5f5d9376e485130c58aacdcce58.tar.xz
systemd-c1db424db507d5f5d9376e485130c58aacdcce58.zip
tree-wide: use LOG_PRI() and LOG_FAC()
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-manager.c b/src/udev/udev-manager.c
index 1f8d8e4950..bb94478775 100644
--- a/src/udev/udev-manager.c
+++ b/src/udev/udev-manager.c
@@ -885,7 +885,7 @@ static int on_ctrl_msg(UdevCtrl *uctrl, UdevCtrlMessageType type, const UdevCtrl
switch (type) {
case UDEV_CTRL_SET_LOG_LEVEL:
- if ((value->intval & LOG_PRIMASK) != value->intval) {
+ if (LOG_PRI(value->intval) != value->intval) {
log_debug("Received invalid udev control message (SET_LOG_LEVEL, %i), ignoring.", value->intval);
break;
}