aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-02-07 16:08:02 (GMT)
committerJouni Malinen <j@w1.fi>2016-02-07 16:09:21 (GMT)
commit9e1f1bdb6f35792ffdc016cebe2c6499d5de1d77 (patch)
treeffccfcfe16c238c32a5df57aa1922664ba63a4fa /src/utils
parentf9982b3212228f687f828bd201aa266056aa20f7 (diff)
downloadhostap-9e1f1bdb6f35792ffdc016cebe2c6499d5de1d77.zip
hostap-9e1f1bdb6f35792ffdc016cebe2c6499d5de1d77.tar.gz
hostap-9e1f1bdb6f35792ffdc016cebe2c6499d5de1d77.tar.bz2
eloop: Clean up coding style for eloop debug prints
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/eloop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils/eloop.c b/src/utils/eloop.c
index a3c6ece..831da12 100644
--- a/src/utils/eloop.c
+++ b/src/utils/eloop.c
@@ -165,7 +165,7 @@ int eloop_init(void)
#ifdef CONFIG_ELOOP_EPOLL
eloop.epollfd = epoll_create1(0);
if (eloop.epollfd < 0) {
- wpa_printf(MSG_ERROR, "%s: epoll_create1 failed. %s\n",
+ wpa_printf(MSG_ERROR, "%s: epoll_create1 failed. %s",
__func__, strerror(errno));
return -1;
}
@@ -319,8 +319,8 @@ static int eloop_sock_table_add_sock(struct eloop_sock_table *table,
temp_events = os_realloc_array(eloop.epoll_events, next,
sizeof(struct epoll_event));
if (temp_events == NULL) {
- wpa_printf(MSG_ERROR, "%s: malloc for epoll failed. "
- "%s\n", __func__, strerror(errno));
+ wpa_printf(MSG_ERROR, "%s: malloc for epoll failed: %s",
+ __func__, strerror(errno));
return -1;
}
@@ -404,8 +404,8 @@ static void eloop_sock_table_remove_sock(struct eloop_sock_table *table,
eloop_trace_sock_add_ref(table);
#ifdef CONFIG_ELOOP_EPOLL
if (epoll_ctl(eloop.epollfd, EPOLL_CTL_DEL, sock, NULL) < 0) {
- wpa_printf(MSG_ERROR, "%s: epoll_ctl(DEL) for fd=%d "
- "failed. %s\n", __func__, sock, strerror(errno));
+ wpa_printf(MSG_ERROR, "%s: epoll_ctl(DEL) for fd=%d failed: %s",
+ __func__, sock, strerror(errno));
return;
}
os_memset(&eloop.fd_table[sock], 0, sizeof(struct eloop_sock));