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:
Andrew Zaborowski 2020-10-10 17:23:52 +02:00 committed by Thomas Haller
parent 6cf475e6db
commit 6c5068ee5a
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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;
}