From 6ad50ac49b4cb418c660ff9d977c6292b38d233b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 8 Feb 2021 15:05:54 -0600 Subject: [PATCH] ap: Make sure strerror argument is positive --- src/ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap.c b/src/ap.c index 407a2596..d34b2edd 100644 --- a/src/ap.c +++ b/src/ap.c @@ -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);