Commit bdac0633ab11b659c30141621c31918e6e62d847

Kano 2013-08-23T17:06:35

api.c fix mcast debug message bug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/api.c b/api.c
index 1afbec0..9b4ba65 100644
--- a/api.c
+++ b/api.c
@@ -4411,11 +4411,11 @@ static void mcast()
 						0, (struct sockaddr *)(&came_from),
 						sizeof(came_from));
 				if (SOCKETFAIL(rep)) {
-					applog(LOG_DEBUG, "API mcast reply failed (%s) (%d)",
+					applog(LOG_DEBUG, "API mcast send reply failed (%s) (%d)",
 								SOCKERRMSG, (int)reply_sock);
 				} else {
-					applog(LOG_DEBUG, "API mcast reply (%s) succeeded (%d) (%d)",
-								reply, (int)rep, (int)reply_sock);
+					applog(LOG_DEBUG, "API mcast send reply (%s) succeeded (%d) (%d)",
+								replybuf, (int)rep, (int)reply_sock);
 				}
 
 				CLOSESOCKET(reply_sock);