Re: [PATCH] core: log when removing devices
- From: Dan Winship <danw gnome org>
- To: Dan Williams <dcbw redhat com>, Network Manager <networkmanager-list gnome org>
- Subject: Re: [PATCH] core: log when removing devices
- Date: Mon, 07 Apr 2014 14:13:57 -0400
On 04/04/2014 04:09 PM, Dan Williams wrote:
static void
device_removed_cb (NMDevice *device, gpointer user_data)
{
- remove_device (NM_MANAGER (user_data), device, FALSE);
+ remove_device (NM_MANAGER (user_data), device, FALSE, "device request");
}
It might be better to add a reason string to the "removed" signal so
they can provide something more specific.
+ remove_device (self, NM_DEVICE (iter->data), FALSE, "parent request");
That could also be clearer, maybe involving the parent ifname too.
-- Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]