summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-08-17 15:27:58 -0500
committerDan Williams <dcbw@redhat.com>2012-08-17 15:27:58 -0500
commitee920262ac4e1310c84854c7cde3f74eb1a47973 (patch)
treefe8812b91243f2957502e72805f325e8cc146ca6 /src
parent3ba28d9b16383efe55245840d00a1e5debd73338 (diff)
downloadNetworkManager-ee920262ac4e1310c84854c7cde3f74eb1a47973.tar.gz
rfkill: better logging of platform switches and states
Diffstat (limited to 'src')
-rw-r--r--src/nm-udev-manager.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/nm-udev-manager.c b/src/nm-udev-manager.c
index 57b36d38f1..335b0ed338 100644
--- a/src/nm-udev-manager.c
+++ b/src/nm-udev-manager.c
@@ -204,6 +204,14 @@ recheck_killswitches (NMUdevManager *self)
if (device) {
sysfs_state = g_udev_device_get_property_as_int (device, "RFKILL_STATE");
dev_state = sysfs_state_to_nm_state (sysfs_state);
+
+ nm_log_dbg (LOGD_RFKILL, "%s rfkill%s switch %s state now %d/%u",
+ rfkill_type_to_desc (ks->rtype),
+ ks->platform ? " platform" : "",
+ ks->name,
+ sysfs_state,
+ dev_state);
+
if (ks->platform == FALSE) {
if (dev_state > poll_states[ks->rtype])
poll_states[ks->rtype] = dev_state;
@@ -285,10 +293,11 @@ add_one_killswitch (NMUdevManager *self, GUdevDevice *device)
ks = killswitch_new (device, rtype);
priv->killswitches = g_slist_prepend (priv->killswitches, ks);
- nm_log_info (LOGD_RFKILL, "found %s radio killswitch %s (at %s) (driver %s)",
- rfkill_type_to_desc (rtype),
+ nm_log_info (LOGD_RFKILL, "%s: found %s radio killswitch (at %s) (%sdriver %s)",
ks->name,
+ rfkill_type_to_desc (rtype),
ks->path,
+ ks->platform ? "platform " : "",
ks->driver ? ks->driver : "<unknown>");
}