3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

ap: Make sure strerror argument is positive

This commit is contained in:
Denis Kenzior 2021-02-08 15:05:54 -06:00
parent f046bed225
commit 6ad50ac49b

View File

@ -2783,7 +2783,7 @@ static void ap_stop_cb(struct l_genl_msg *msg, void *user_data)
ap->start_stop_cmd_id = 0; ap->start_stop_cmd_id = 0;
if (error < 0) if (error < 0)
l_error("STOP_AP failed: %s (%i)", strerror(error), error); l_error("STOP_AP failed: %s (%i)", strerror(-error), -error);
if (ap->stopped_func) if (ap->stopped_func)
ap->stopped_func(ap->user_data); ap->stopped_func(ap->user_data);