From 4c351196a94176d98187180db30363de993212f0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 20 Mar 2015 12:30:11 -0500 Subject: [PATCH] wiphy: Print errno if read fails --- src/wiphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiphy.c b/src/wiphy.c index 844e35db..3666e740 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -176,7 +176,7 @@ static bool eapol_read(struct l_io *io, void *user_data) bytes = recvfrom(fd, frame, sizeof(frame), 0, (struct sockaddr *) &sll, &sll_len); if (bytes <= 0) { - l_error("EAPoL read socket"); + l_error("EAPoL read socket: %s", strerror(errno)); return false; }