加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-udev-update-comment-and-log-messages.patch 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
From 87afc766d199642c6da956657b05690a39542856 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Sat, 12 Mar 2022 20:48:36 +0900
Subject: [PATCH] udev: update comment and log message
Reference:https://github.com/systemd/systemd/commit/87afc766d199642c6da956657b05690a39542856
Conflict:NA
---
src/udev/udevd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 41d0ec1e137c..0407068d5112 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1448,10 +1448,11 @@ static int on_sigchld(sd_event_source *s, const struct signalfd_siginfo *si, voi
device_tag_index(worker->event->dev, NULL, false);
if (manager->monitor) {
- /* forward kernel event without amending it */
+ /* Forward kernel event unchanged */
r = device_monitor_send_device(manager->monitor, NULL, worker->event->dev_kernel);
if (r < 0)
- log_device_error_errno(worker->event->dev_kernel, r, "Failed to send back device to kernel: %m");
+ log_device_warning_errno(worker->event->dev_kernel, r,
+ "Failed to broadcast failed event to libudev listeners, ignoring: %m");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化