Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From f64b6ce8054b47e5bdcc8c4c7965534b388e6151 Mon Sep 17 00:00:00 2001 |
| 2 | From: Dmitry Torokhov <dmitry.torokhov@gmail.com> |
| 3 | Date: Fri, 6 Apr 2018 11:26:54 -0700 |
| 4 | Subject: [PATCH] linux: lower severity of "unhandled action" messages |
| 5 | |
| 6 | Newer kernels emit bind/unbind uevents that are not of interest to |
| 7 | powerd. To avoid littering logs with scary messages, let's lower their |
| 8 | severity to "debug". |
| 9 | |
| 10 | https://bugs.freedesktop.org/show_bug.cgi?id=106019 |
| 11 | |
| 12 | Upstream-Status: Backport |
| 13 | --- |
| 14 | src/linux/up-backend.c | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/src/linux/up-backend.c b/src/linux/up-backend.c |
| 18 | index e668dc8..b8021e7 100644 |
| 19 | --- a/src/linux/up-backend.c |
| 20 | +++ b/src/linux/up-backend.c |
| 21 | @@ -273,7 +273,7 @@ up_backend_uevent_signal_handler_cb (GUdevClient *client, const gchar *action, |
| 22 | g_debug ("SYSFS change %s", g_udev_device_get_sysfs_path (device)); |
| 23 | up_backend_device_changed (backend, device); |
| 24 | } else { |
| 25 | - g_warning ("unhandled action '%s' on %s", action, g_udev_device_get_sysfs_path (device)); |
| 26 | + g_debug ("unhandled action '%s' on %s", action, g_udev_device_get_sysfs_path (device)); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | -- |
| 31 | 2.17.0.484.g0c8726318c-goog |