[PATCH 6/7] bonding: Log slave activation/deactivation
- From: Thomas Graf <tgraf redhat com>
- To: networkmanager-list gnome org
- Cc: Thomas Graf <tgraf redhat com>
- Subject: [PATCH 6/7] bonding: Log slave activation/deactivation
- Date: Tue, 22 Nov 2011 12:19:18 +0100
Signed-off-by: Thomas Graf <tgraf redhat com>
---
src/nm-device.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/nm-device.c b/src/nm-device.c
index 5721f73..40e03bb 100644
--- a/src/nm-device.c
+++ b/src/nm-device.c
@@ -793,6 +793,11 @@ handle_slave_activation (NMDevice *slave, NMDevice *master)
nm_device_hw_bring_up (slave, TRUE, NULL);
}
+ nm_log_info (LOGD_DEVICE, "Activation (%s) Stage 1 of 5 (Device Prepare) enslaved to %s (%s)",
+ nm_device_get_iface (slave),
+ nm_device_get_iface (master),
+ master_con ? nm_connection_get_uuid (master_con) : "<unknown-uuid>");
+
return TRUE;
}
@@ -810,6 +815,11 @@ handle_slave_deactivation (NMDevice *slave, NMDevice *master)
if (nm_setting_connection_is_slave_type (s_con, NM_SETTING_BOND_SETTING_NAME))
nm_system_iface_release (slave, master);
+ else
+ return;
+
+ nm_log_info (LOGD_DEVICE, "Device %s released from master %s",
+ nm_device_get_iface (slave), nm_device_get_iface (master));
}
/*
--
1.7.7.3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]