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.
This commit is contained in:
Thomas Haller
2015-05-18 17:37:05 +02:00
parent 57958b93b6
commit 39f2b51abb
5 changed files with 23 additions and 8 deletions

View File

@@ -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: