mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
upower: avoid scary messages in journal/syslog
When inserting/removing USB device not handled by upower (Mouse/Keyboard/USB-Sticks..) upower spams on later kernels: | Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2 | Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0 | Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0/0003:41> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
|||||||
|
From f64b6ce8054b47e5bdcc8c4c7965534b388e6151 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|
||||||
|
Date: Fri, 6 Apr 2018 11:26:54 -0700
|
||||||
|
Subject: [PATCH] linux: lower severity of "unhandled action" messages
|
||||||
|
|
||||||
|
Newer kernels emit bind/unbind uevents that are not of interest to
|
||||||
|
powerd. To avoid littering logs with scary messages, let's lower their
|
||||||
|
severity to "debug".
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=106019
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
---
|
||||||
|
src/linux/up-backend.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c
|
||||||
|
index e668dc8..b8021e7 100644
|
||||||
|
--- a/src/linux/up-backend.c
|
||||||
|
+++ b/src/linux/up-backend.c
|
||||||
|
@@ -273,7 +273,7 @@ up_backend_uevent_signal_handler_cb (GUdevClient *client, const gchar *action,
|
||||||
|
g_debug ("SYSFS change %s", g_udev_device_get_sysfs_path (device));
|
||||||
|
up_backend_device_changed (backend, device);
|
||||||
|
} else {
|
||||||
|
- g_warning ("unhandled action '%s' on %s", action, g_udev_device_get_sysfs_path (device));
|
||||||
|
+ g_debug ("unhandled action '%s' on %s", action, g_udev_device_get_sysfs_path (device));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.17.0.484.g0c8726318c-goog
|
||||||
@@ -4,7 +4,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08"
|
|||||||
|
|
||||||
DEPENDS = "intltool-native libusb1 libgudev glib-2.0 dbus-glib polkit"
|
DEPENDS = "intltool-native libusb1 libgudev glib-2.0 dbus-glib polkit"
|
||||||
|
|
||||||
SRC_URI = "http://upower.freedesktop.org/releases/${BPN}-${PV}.tar.xz"
|
SRC_URI = " \
|
||||||
|
http://upower.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
|
||||||
|
file://0001-linux-lower-severity-of-unhandled-action-messages.patch \
|
||||||
|
"
|
||||||
SRC_URI[md5sum] = "236bb439d9ff1151450b3d8582399532"
|
SRC_URI[md5sum] = "236bb439d9ff1151450b3d8582399532"
|
||||||
SRC_URI[sha256sum] = "24bcc2f6ab25a2533bac70b587bcb019e591293076920f5b5e04bdedc140a401"
|
SRC_URI[sha256sum] = "24bcc2f6ab25a2533bac70b587bcb019e591293076920f5b5e04bdedc140a401"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user