Convert perror/printf calls to wpa_printf
This makes debug and error logging more consistent and allows them to be directed to a file more easily. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8f47f31dd8
commit
61323e70e1
12 changed files with 156 additions and 143 deletions
|
@ -753,7 +753,8 @@ void eloop_run(void)
|
|||
timeout ? timeout_ms : -1);
|
||||
|
||||
if (res < 0 && errno != EINTR && errno != 0) {
|
||||
perror("poll");
|
||||
wpa_printf(MSG_INFO, "eloop: poll: %s",
|
||||
strerror(errno));
|
||||
goto out;
|
||||
}
|
||||
#else /* CONFIG_ELOOP_POLL */
|
||||
|
@ -763,7 +764,8 @@ void eloop_run(void)
|
|||
res = select(eloop.max_sock + 1, rfds, wfds, efds,
|
||||
timeout ? &_tv : NULL);
|
||||
if (res < 0 && errno != EINTR && errno != 0) {
|
||||
perror("select");
|
||||
wpa_printf(MSG_INFO, "eloop: select: %s",
|
||||
strerror(errno));
|
||||
goto out;
|
||||
}
|
||||
#endif /* CONFIG_ELOOP_POLL */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue