libnm-util: remove nm_warning/nm_info/nm_error macros
Clients need to do their own logging using glib or whatever; these macros while somewhat helpful were not flexible and are not a substitute for actual logging in the client. g_warning, g_message, and g_error are more suitable anyway.
This commit is contained in:
@@ -80,8 +80,8 @@ ip4_address_as_string (guint32 ip)
|
||||
if (inet_ntop (AF_INET, &tmp_addr, buf, INET_ADDRSTRLEN)) {
|
||||
return g_strdup (buf);
|
||||
} else {
|
||||
nm_warning ("%s: error converting IP4 address 0x%X",
|
||||
__func__, ntohl (tmp_addr.s_addr));
|
||||
g_warning ("%s: error converting IP4 address 0x%X",
|
||||
__func__, ntohl (tmp_addr.s_addr));
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user