From 6c5068ee5ab5d8d53bfbb7de8b9e458f4dd1a41a Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Sat, 10 Oct 2020 17:23:52 +0200 Subject: [PATCH] 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. --- src/devices/wifi/nm-device-iwd.c | 7 ++++--- 1 file 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; }