mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02: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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
nm_utils_error_set_literal(error,
|
nm_utils_error_set(error,
|
||||||
NM_UTILS_ERROR_CONNECTION_AVAILABLE_INCOMPATIBLE,
|
NM_UTILS_ERROR_CONNECTION_AVAILABLE_INCOMPATIBLE,
|
||||||
"%s type profiles not supported by IWD backend");
|
"'%s' type profiles not supported by IWD backend",
|
||||||
|
mode);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue