wiphy: Print errno if read fails

This commit is contained in:
Denis Kenzior 2015-03-20 12:30:11 -05:00
parent 25af920563
commit 4c351196a9
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}