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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user