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
1 changed files with 1 additions and 1 deletions

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;
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)
ap->stopped_func(ap->user_data);