diff options
author | Andrew Zaborowski <andrew.zaborowski@intel.com> | 2020-10-10 17:23:52 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-10-19 18:47:20 +0200 |
commit | 6c5068ee5ab5d8d53bfbb7de8b9e458f4dd1a41a (patch) | |
tree | 1bdaafc99abc0af0acbe4c8a8b8e3e7ee8fa67f2 | |
parent | 6cf475e6db7358cf85e7b0662d7d7e61f3d5f0be (diff) | |
download | NetworkManager-6c5068ee5ab5d8d53bfbb7de8b9e458f4dd1a41a.tar.gz |
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.
-rw-r--r-- | src/devices/wifi/nm-device-iwd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index 488c47ef54..0f469b35ef 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -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; } |