summaryrefslogtreecommitdiff
path: root/src/NetworkManagerUtils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-05-18 17:37:05 +0200
committerThomas Haller <thaller@redhat.com>2015-06-05 16:52:49 +0200
commit39f2b51abb70100f62c42b77e55cf3e386b9c49a (patch)
treef401ee263cc19eaed4b0a3bc6cb696434b0afffa /src/NetworkManagerUtils.h
parent57958b93b62a29053ca0f7d4e2b2844a50627d21 (diff)
downloadNetworkManager-39f2b51abb70100f62c42b77e55cf3e386b9c49a.tar.gz
core: add option to suppress error logging if nm_utils_modprobe() fails
We don't want error logging for nm_platform_link_add() which tries to load the bonding module. Later we will run tests as non-root, where modprobe will fail. Logging an error would break the tests.
Diffstat (limited to 'src/NetworkManagerUtils.h')
-rw-r--r--src/NetworkManagerUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
index c7b1e13627..7624715264 100644
--- a/src/NetworkManagerUtils.h
+++ b/src/NetworkManagerUtils.h
@@ -51,7 +51,7 @@ nm_utils_ip6_route_metric_normalize (guint32 metric)
int nm_spawn_process (const char *args, GError **error);
-int nm_utils_modprobe (GError **error, const char *arg1, ...) G_GNUC_NULL_TERMINATED;
+int nm_utils_modprobe (GError **error, gboolean suppress_error_loggin, const char *arg1, ...) G_GNUC_NULL_TERMINATED;
/**
* str_if_set: