From 9234e99b8c16538db4e3bf63e6460edf2f57a6b3 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Sat, 19 Jul 2014 15:17:27 +0000 Subject: [PATCH] debugprints of ips now using anonymous variables FossilOrigin-Name: c19b60d28cd0cfd18ae703b479f560289f34d1054efc9baf6b03e4fae6887df5 --- src/ac/wtpman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ac/wtpman.c b/src/ac/wtpman.c index 9bc6a76f..7eda2e18 100644 --- a/src/ac/wtpman.c +++ b/src/ac/wtpman.c @@ -31,7 +31,7 @@ /* macro to convert our client ip to a string */ -#define CLIENT_IP (sock_addrtostr((struct sockaddr*)&wtpman->conn->addr, wtpman->tmpstr, sizeof(wtpman->tmpstr))) +#define CLIENT_IP (sock_addrtostr((struct sockaddr*)&wtpman->conn->addr, (char[64]){0},64)) @@ -138,7 +138,7 @@ static void wtpman_run(void *arg) int result_code = 1; cwsend_join_response(wtpman->conn,cwrmsg->seqnum,result_code,&radioinfo,acinfo,&wtpman->wtpinfo); - cw_log_debug0("WTP joined"); + cw_log_debug0("WTP joined %s,%s",wtpman->wtpinfo.name,wtpman->wtpinfo.location); int msg_counter = 0; while(1){