mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-20 02:32:36 +01:00
wiphy: Print errno if read fails
This commit is contained in:
parent
25af920563
commit
4c351196a9
@ -176,7 +176,7 @@ static bool eapol_read(struct l_io *io, void *user_data)
|
|||||||
bytes = recvfrom(fd, frame, sizeof(frame), 0,
|
bytes = recvfrom(fd, frame, sizeof(frame), 0,
|
||||||
(struct sockaddr *) &sll, &sll_len);
|
(struct sockaddr *) &sll, &sll_len);
|
||||||
if (bytes <= 0) {
|
if (bytes <= 0) {
|
||||||
l_error("EAPoL read socket");
|
l_error("EAPoL read socket: %s", strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user