mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-24 06:50:47 +02:00
logging: silence ignorable warning
Since the NMDevice's interface isn't always the same as a kernel interface name, we won't always have an entry in /proc/sys/net for it.
This commit is contained in:
parent
79df93ce33
commit
d9cca49784
1 changed files with 4 additions and 4 deletions
|
|
@ -605,10 +605,10 @@ nm_utils_get_proc_sys_net_value (const char *path,
|
|||
long int tmp;
|
||||
|
||||
if (!g_file_get_contents (path, &contents, NULL, &error)) {
|
||||
nm_log_warn (LOGD_DEVICE, "(%s): error reading %s: (%d) %s",
|
||||
iface, path,
|
||||
error ? error->code : -1,
|
||||
error && error->message ? error->message : "(unknown)");
|
||||
nm_log_dbg (LOGD_DEVICE, "(%s): error reading %s: (%d) %s",
|
||||
iface, path,
|
||||
error ? error->code : -1,
|
||||
error && error->message ? error->message : "(unknown)");
|
||||
g_clear_error (&error);
|
||||
} else {
|
||||
errno = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue