mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 03:30:09 +01:00
iwd: Don't use nm_utils_error_set_literal with a non-literal
I first noticed a format string with missing parameters and then that the compiler wasn't complaining and that's because nm_utils_error_set_literal doesn't take a format string.
This commit is contained in:
parent
6cf475e6db
commit
6c5068ee5a
1 changed files with 4 additions and 3 deletions
|
|
@ -676,9 +676,10 @@ check_connection_compatible(NMDevice *device, NMConnection *connection, GError *
|
|||
return FALSE;
|
||||
}
|
||||
} else {
|
||||
nm_utils_error_set_literal(error,
|
||||
NM_UTILS_ERROR_CONNECTION_AVAILABLE_INCOMPATIBLE,
|
||||
"%s type profiles not supported by IWD backend");
|
||||
nm_utils_error_set(error,
|
||||
NM_UTILS_ERROR_CONNECTION_AVAILABLE_INCOMPATIBLE,
|
||||
"'%s' type profiles not supported by IWD backend",
|
||||
mode);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue