From b636c405e5e2dd6e5a9f3ecce9117a659049ff47 Mon Sep 17 00:00:00 2001 From: Luo Jinghua Date: Sat, 26 Nov 2011 18:54:18 +0800 Subject: SexyAppFramework: Added all debug printfs in SexyServiceManager --- osframework/source/SexyAppFramework/SexyServiceManager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/osframework/source/SexyAppFramework/SexyServiceManager.cpp b/osframework/source/SexyAppFramework/SexyServiceManager.cpp index 561069c..4be057a 100644 --- a/osframework/source/SexyAppFramework/SexyServiceManager.cpp +++ b/osframework/source/SexyAppFramework/SexyServiceManager.cpp @@ -142,8 +142,8 @@ void ServiceManager::processQueryPacket(char* buf, ptr = writel(ptr, mCookie); ptr = writel(ptr, 0); - printf("ServiceManager: Sending a query reply packet(max: %d: size: %d) to %s\n", - (int)count, (int)sizeof(outbuf), addr.c_str()); + //printf("ServiceManager: Sending a query reply packet(max: %d: size: %d) to %s\n", + // (int)count, (int)sizeof(outbuf), addr.c_str()); mSock->sendTo(outbuf, sizeof(outbuf), addr, port); return; @@ -195,8 +195,8 @@ void ServiceManager::processQueryPacket(char* buf, assert(size < sizeof(outbuf)); - printf("ServiceManager: Sending a query reply packet(max: %d: index:%d size: %d) to %s\n", - (int)count, i, (int)size, addr.c_str()); + //printf("ServiceManager: Sending a query reply packet(max: %d: index:%d size: %d) to %s\n", + // (int)count, i, (int)size, addr.c_str()); mSock->sendTo(outbuf, size, addr, port); @@ -236,8 +236,8 @@ void ServiceManager::processQueryInfoPacket(char* buf, // payload size writel(outbuf + 8, size - 12); - printf("ServiceManager: Sending a query info reply packet(size: %d) to %s\n", - (int)size, addr.c_str()); + //printf("ServiceManager: Sending a query info reply packet(size: %d) to %s\n", + // (int)size, addr.c_str()); mSock->sendTo(outbuf, size, addr, port); } @@ -252,7 +252,7 @@ void ServiceManager::processPacket(char* buf, std::string tag(&buf[0], &buf[4]); - printf ("ServiceManager: Received a packet(%s) from %s.\n", tag.c_str(), addr.c_str()); + // printf ("ServiceManager: Received a packet(%s) from %s.\n", tag.c_str(), addr.c_str()); if (tag == "ECHO") processEchoPacket(buf, buflen, addr, port); -- cgit v1.2.3