2008-03-07 Dan Williams <dcbw@redhat.com>

* src/nm-netlink.c
		- (nm_netlink_get_default_handle): mistakenly removed too much code in
			last commit; fix that
		- (get_link_cache): print error string



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3385 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-03-07 17:09:44 +00:00
parent 2b200ca1b3
commit 07ec50353e
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2008-03-07 Dan Williams <dcbw@redhat.com>
* src/nm-netlink.c
- (nm_netlink_get_default_handle): mistakenly removed too much code in
last commit; fix that
- (get_link_cache): print error string
2008-03-07 Dan Williams <dcbw@redhat.com>
* src/nm-netlink.c

View file

@ -46,7 +46,7 @@ get_link_cache (void)
link_cache = rtnl_link_alloc_cache (nlh);
if (G_UNLIKELY (!link_cache)) {
nm_warning ("couldn't allocate netlink link cache.");
nm_warning ("couldn't allocate netlink link cache: %s", nl_geterror ());
return NULL;
}
@ -70,6 +70,11 @@ nm_netlink_get_default_handle (void)
return NULL;
}
if (nl_connect (def_nl_handle, NETLINK_ROUTE) < 0) {
nm_error ("couldn't connect to netlink: %s", nl_geterror ());
return NULL;
}
return def_nl_handle;
}