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:
Jouni Malinen 2013-11-02 12:51:30 +02:00
parent 8f47f31dd8
commit 61323e70e1
12 changed files with 156 additions and 143 deletions

View file

@ -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 */