Bläddra i källkod

remove some logs

zhangbo 3 år sedan
förälder
incheckning
8912d6dad8

+ 1 - 1
app/goahead-3.6.5/src/auth.c

@@ -567,7 +567,7 @@ static void loginServiceProc(Webs *wp)
     websDone(wp);
 
     //这里的打印也不能去掉,猜测是这里的打印起了延时的作用。
-    printf("---> cJSON Str: %d \n%s\n", strlen(pStr), pStr);
+//    printf("---> cJSON Str: %d \n%s\n", strlen(pStr), pStr);
     if(pStr)
         wfree(pStr);
     if(root)

+ 15 - 15
app/goahead-3.6.5/src/cgi.c

@@ -397,7 +397,7 @@ int websCgiPoll()
     Cgi     *cgip;
     char    **ep;
     int     cid;
-
+    printf("Enter websCgiPoll()\n");
     for (cid = 0; cid < cgiMax; cid++) {
         if ((cgip = cgiList[cid]) != NULL) {
             wp = cgip->wp;
@@ -409,20 +409,20 @@ int websCgiPoll()
                 cgip->handle = 0;
                 websCgiGatherOutput(cgip);
 
-#if WINDOWS
-                /*
-                     Windows can have delayed notification through the file system after process exit.
-                 */
-                {
-                    int nTries;
-                    for (nTries = 0; (cgip->fplacemark == 0) && (nTries < 100); nTries++) {
-                        websCgiGatherOutput(cgip);
-                        if (cgip->fplacemark == 0) {
-                            Sleep(10);
-                        }
-                    }
-                }
-#endif
+// #if WINDOWS
+//                 /*
+//                      Windows can have delayed notification through the file system after process exit.
+//                  */
+//                 {
+//                     int nTries;
+//                     for (nTries = 0; (cgip->fplacemark == 0) && (nTries < 100); nTries++) {
+//                         websCgiGatherOutput(cgip);
+//                         if (cgip->fplacemark == 0) {
+//                             Sleep(10);
+//                         }
+//                     }
+//                 }
+// #endif
                 if (cgip->fplacemark == 0) {
                     websError(wp, HTTP_CODE_INTERNAL_SERVER_ERROR, "CGI generated no output");
                 } else {

+ 1 - 2
app/goahead-3.6.5/src/file.c

@@ -58,10 +58,9 @@ static bool fileHandler(Webs *wp)
                 wp->path[--nchars] = '\0';
             }
             tmp = sfmt("%s/%s", wp->path, websIndex);
-            printf("---> tmp: %s\n", tmp);
+            printf("Redirect %s\n", tmp);
             websRedirect(wp, tmp);
             wfree(tmp);
-            printf("---> fileHandler return 1\n");
             return 1;
         }
 //        printf(">>>>>>>>>>>>>>>>>>>>>>>>>>1.3>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n");

+ 12 - 19
app/goahead-3.6.5/src/goahead.c

@@ -126,16 +126,12 @@ MAIN(goahead, int argc, char **argv, char **envp)
     if (argc > argind) {
         documents = argv[argind++];
     }
- //   printf("---> initPlatform\n");
     initPlatform(); //注册信号
- //   printf("---> websOpen\n");
-//    printf(">>>>>>>>>>>>>>>>>>>>>>>>>>2>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
     if (websOpen(documents, route) < 0) {
         error("Cannot initialize server. Exiting.");
         return -1;
     }
 #if ME_GOAHEAD_AUTH
-//    printf("---> websLoad\n");
     if (websLoad(auth) < 0) {
         error("Cannot load %s", auth);
         return -1;
@@ -145,7 +141,6 @@ MAIN(goahead, int argc, char **argv, char **envp)
     if (argind < argc) {
         while (argind < argc) {
             endpoint = argv[argind++];
-//            printf("---> websListen log1\n");
             if (websListen(endpoint) < 0) {
                 return -1;
             }
@@ -156,7 +151,6 @@ MAIN(goahead, int argc, char **argv, char **envp)
 #if !ME_COM_SSL
             if (strstr(endpoint, "https")) continue;
 #endif
-//            printf("---> websListen log2\n");
             if (websListen(endpoint) < 0) {
                 wfree(endpoints);
                 return -1;
@@ -250,10 +244,8 @@ websDefineAction("web_RestoreConfig", web_RestoreConfig);
         }
     }
 #endif
-    //printf("---> websServiceEvents\n");
     websServiceEvents(&finished);
     printf("Instructed to exit");
-    //printf("---> websClose\n");
     websClose();
 #if WINDOWS
     windowsClose();
@@ -267,17 +259,18 @@ static void logHeader()
     char    home[ME_GOAHEAD_LIMIT_STRING];
 
     getcwd(home, sizeof(home));
-    printf( "Configuration for %s", ME_TITLE);
-    printf( "---------------------------------------------");
-    printf( "Version:            %s", ME_VERSION);
-    printf( "BuildType:          %s", ME_DEBUG ? "Debug" : "Release");
-    printf( "CPU:                %s", ME_CPU);
-    printf( "OS:                 %s", ME_OS);
-    printf( "Host:               %s", websGetServer());
-    printf( "Directory:          %s", home);
-    printf( "Documents:          %s", websGetDocuments());
-    printf( "Configure:          %s", ME_CONFIG_CMD);
-    printf( "---------------------------------------------");
+    //printf( "Configuration for %s\n", ME_TITLE);
+    printf( "\ngoahead web server start\n");
+    printf( "---------------------------------------------\n");
+    printf( "  Version:      %s\n", ME_VERSION);
+    printf( "  BuildType:    %s\n", ME_DEBUG ? "Debug" : "Release");
+    printf( "  CPU:          %s\n", ME_CPU);
+    printf( "  OS:           %s\n", ME_OS);
+    printf( "  Host:         %s\n", websGetServer());
+    printf( "  Directory:    %s\n", home);
+    printf( "  Documents:    %s\n", websGetDocuments());
+    printf( "  Configure:    %s\n", ME_CONFIG_CMD);
+    printf( "---------------------------------------------\n");
 }
 
 

+ 25 - 25
app/goahead-3.6.5/src/http.c

@@ -295,7 +295,7 @@ PUBLIC void websClose()
     Webs    *wp;
     int     i;
 
-printf("%s %d ---> websClose()\n", __FILE__, __LINE__);
+//printf("%s %d ---> websClose()\n", __FILE__, __LINE__);
     websCloseRoute();
 #if ME_GOAHEAD_AUTH
     websCloseAuth();
@@ -593,10 +593,10 @@ static int complete(Webs *wp, int reuse)
     if (reuse && wp->flags & WEBS_KEEP_ALIVE && wp->rxRemaining == 0) {
         reuseConn(wp);
         socketCreateHandler(wp->sid, SOCKET_READABLE, socketEvent, wp);
-        printf( "Keep connection alive");
+        //printf( "Keep connection alive");
         return 1;
     }
-    printf("Close connection");
+    //printf("Close connection");
     wp->state = WEBS_BEGIN;
     wp->flags |= WEBS_CLOSED;
     return 0;
@@ -635,7 +635,7 @@ PUBLIC int websListen(char *endpoint)
     } else {
         ipaddr = "*";
     }
-    printf("Started %s://%s:%d", secure ? "https" : "http", ipaddr, port);
+    //printf("Started %s://%s:%d", secure ? "https" : "http", ipaddr, port);
 
     if (!websHostUrl) {
         if (port == 80) {
@@ -707,12 +707,12 @@ PUBLIC int websAccept(int sid, char *ipaddr, int port, int listenSid)
         Arrange for socketEvent to be called when read data is available
      */
     lp = socketPtr(listenSid);
-    printf( "New connection from %s:%d to %s:%d", ipaddr, port, wp->ifaddr, lp->port);
+    //printf( "New connection from %s:%d to %s:%d", ipaddr, port, wp->ifaddr, lp->port);
 
 #if ME_COM_SSL
     if (lp->secure) {
         wp->flags |= WEBS_SECURE;
-        printf( "Upgrade connection to TLS");
+        //printf( "Upgrade connection to TLS");
         if (sslUpgrade(wp) < 0) {
             error("Cannot upgrade to TLS");
             return -1;
@@ -896,10 +896,10 @@ static bool parseIncoming(Webs *wp)
         }
         return 0;
     }
-    printf("\n<<< Request\n");
+    //printf("\n<<< Request\n");
     c = *end;
     *end = '\0';
-    printf( "%s\n", wp->rxbuf.servp);
+    //printf( "%s\n", wp->rxbuf.servp);
     *end = c;
 
     /*
@@ -980,9 +980,9 @@ static void parseFirstLine(Webs *wp)
         return;
     }
     protoVer = getToken(wp, "\r\n");
-    if (websGetLogLevel() == 2) {
-        printf("%s %s %s", wp->method, url, protoVer);
-    }
+    // if (websGetLogLevel() == 2) {
+    //     printf("===> %s %s %s", wp->method, url, protoVer);
+    // }
 
     /*
         Parse the URL and store all the various URL components. websUrlParse returns an allocated buffer in buf which we
@@ -1333,7 +1333,7 @@ static bool filterChunkData(Webs *wp)
             nbytes = min(bufRoom(&wp->input), len);
 //            printf("---> bufPutBlk2 len = %d\n", len);
             if (len > 0 && (nbytes = bufPutBlk(&wp->input, rxbuf->servp, nbytes)) == 0) {
-                printf("<<<<<<<<<<<<<<>>42222>>>>>>>>>>>>\n" );
+                //printf("<<<<<<<<<<<<<<>>42222>>>>>>>>>>>>\n" );
                 websError(wp, HTTP_CODE_REQUEST_TOO_LARGE | WEBS_CLOSE, "Too big");
                 return 1;
             }
@@ -1652,7 +1652,7 @@ PUBLIC void websRedirect(Webs *wp, char *uri)
         }
     }
 
-    printf("---> originalPort: %d, hostbuf: %s\n", originalPort, hostbuf);
+    //printf("---> originalPort: %d, hostbuf: %s\n", originalPort, hostbuf);
     if (smatch(uri, "http://") || smatch(uri, "https://")) {
         /* Protocol switch with existing Uri */
         scheme = sncmp(uri, "https", 5) == 0 ? "https" : "http";
@@ -1796,7 +1796,7 @@ PUBLIC int websWriteHeader(Webs *wp, char *key, char *fmt, ...)
 
     if (!(wp->flags & WEBS_RESPONSE_TRACED)) {
         wp->flags |= WEBS_RESPONSE_TRACED;
-        printf( "\n>>> Response\n");
+//        printf( "\n>>> Response\n");
     }
     if (key) {
         if (websWriteBlock(wp, key, strlen(key)) < 0) {
@@ -1805,7 +1805,7 @@ PUBLIC int websWriteHeader(Webs *wp, char *key, char *fmt, ...)
         if (websWriteBlock(wp, ": ", 2) < 0) {
             return -1;
         }
-        printf("%s: ", key);
+        //printf("===> %s: ", key);
     }
     if (fmt) {
         va_start(vargs, fmt);
@@ -1815,7 +1815,7 @@ PUBLIC int websWriteHeader(Webs *wp, char *key, char *fmt, ...)
         }
         va_end(vargs);
         assert(strstr(buf, "UNION") == 0);
-        printf("%s", buf);
+        //printf("===> %s", buf);
         if (websWriteBlock(wp, buf, strlen(buf)) < 0) {
             return -1;
         }
@@ -1824,7 +1824,7 @@ PUBLIC int websWriteHeader(Webs *wp, char *key, char *fmt, ...)
             return -1;
         }
     }
-    printf("\r\n");
+    //printf("\r\n");
     return 0;
 }
 
@@ -2079,15 +2079,15 @@ PUBLIC int websFlush(Webs *wp, bool block)
     }
     op = &wp->output;
     if (wp->flags & WEBS_CHUNKING) {
-        printf("websFlush chunking finalized %d", wp->finalized);
+        //printf("websFlush chunking finalized %d", wp->finalized);
         if (flushChunkData(wp) && wp->finalized) {
-            printf("websFlush: write chunk trailer");
+            //printf("websFlush: write chunk trailer");
             bufPutStr(op, "\r\n0\r\n\r\n");
             bufAddNull(op);
             wp->flags &= ~WEBS_CHUNKING;
         }
     }
-    printf( "websFlush: buflen %d", bufLen(op));
+//    printf( "websFlush: buflen %d", bufLen(op));
     written = 0;
     while ((nbytes = bufLen(op)) > 0) {
         if ((written = websWriteSocket(wp, op->servp, nbytes)) < 0) {
@@ -2107,7 +2107,7 @@ PUBLIC int websFlush(Webs *wp, bool block)
         } else if (written == 0) {
             break;
         }
-        printf( "websFlush: wrote %d to socket", written);
+        //printf( "websFlush: wrote %d to socket", written);
         bufAdjustStart(op, written);
         bufCompact(op);
         nbytes = bufLen(op);
@@ -3217,9 +3217,9 @@ static void pruneSessions()
                 freeSession(sp);
             }
         }
-        if (oldCount != sessionCount || sessionCount) {
-            printf("Prune %d sessions. Remaining: %d", oldCount - sessionCount, sessionCount);
-        }
+        // if (oldCount != sessionCount || sessionCount) {
+        //     printf("Prune %d sessions. Remaining: %d", oldCount - sessionCount, sessionCount);
+        // }
     }
     websRestartEvent(pruneId, WEBS_SESSION_PRUNE);
 }
@@ -3299,7 +3299,7 @@ static void setFileLimits()
         }
     }
     getrlimit(RLIMIT_NOFILE, &r);
-    printf("Max files soft %d, max %d", (int)r.rlim_cur, (int)r.rlim_max);
+    //printf("Max files soft %d, max %d", (int)r.rlim_cur, (int)r.rlim_max);
 #endif
 }
 

+ 2 - 2
app/goahead-3.6.5/src/libipmi/src/libipmi_session.c

@@ -64,7 +64,7 @@ uint16_t LIBIPMI_CreateSession(IPMI20_UDS_SESSION_T *pUDSSession, int timeout)
         printf("LIBIPMI_UDS_SESSION.C: Unable to connect to Server:\n");
         return LIBIPMI_MEDIUM_E_CONNECT_FAILURE;
     }
-    printf("---> Create_IPMI20_UDS_Session %d\n", client_sock);
+//    printf("---> Create_IPMI20_UDS_Session %d\n", client_sock);
 
     pUDSSession->hUDSInfo.hSocket = client_sock;
     pUDSSession->hUDSInfo.byIsConnected = 1;
@@ -224,7 +224,7 @@ Closes the connection with BMC
 ----------------------------------------------------------------------*/
 uint16_t LIBIPMI_CloseSession( IPMI20_UDS_SESSION_T *pUDSSession )
 {
-    printf("LIBIPMI_CloseSession %d\n", pUDSSession->hUDSInfo.hSocket);
+    //printf("LIBIPMI_CloseSession %d\n", pUDSSession->hUDSInfo.hSocket);
     close(pUDSSession->hUDSInfo.hSocket);
     /* reset the connected flag */
     pUDSSession->hUDSInfo.byIsConnected = 0;

+ 5 - 5
app/goahead-3.6.5/src/route.c

@@ -79,7 +79,7 @@ PUBLIC void websRouteRequest(Webs *wp)
 
         if (plen < route->prefixLen) continue;
         len = min(route->prefixLen, plen);
-        printf( "Examine route %s", route->prefix);
+//        printf( "Examine route %s", route->prefix);
         /*
             Match route
          */
@@ -87,19 +87,19 @@ PUBLIC void websRouteRequest(Webs *wp)
             continue;
         }
         if (route->protocol && !smatch(route->protocol, wp->protocol)) {
-            printf( "Route %s does not match protocol %s", route->prefix, wp->protocol);
+            //printf( "Route %s does not match protocol %s", route->prefix, wp->protocol);
             continue;
         }
         if (route->methods >= 0) {
             if (!hashLookup(route->methods, wp->method)) {
-                printf( "Route %s does not match method %s", route->prefix, wp->method);
+                //printf( "Route %s does not match method %s", route->prefix, wp->method);
                 continue;
             }
         } else if (!safeMethod) {
             continue;
         }
         if (route->extensions >= 0 && (wp->ext == 0 || !hashLookup(route->extensions, &wp->ext[1]))) {
-            printf( "Route %s doesn match extension %s", route->prefix, wp->ext ? wp->ext : "");
+            //printf( "Route %s doesn match extension %s", route->prefix, wp->ext ? wp->ext : "");
             continue;
         }
 
@@ -168,7 +168,7 @@ PUBLIC bool websRunRequest(Webs *wp)
         wp->flags |= WEBS_VARS_ADDED;
     }
     wp->state = WEBS_RUNNING;
-    printf( "Route %s calls handler %s", route->prefix, route->handler->name);
+    //printf( "Route %s calls handler %s", route->prefix, route->handler->name);
 
 #if ME_GOAHEAD_LEGACY
     if (route->handler->flags & WEBS_LEGACY_HANDLER) {

+ 2 - 2
app/goahead-3.6.5/src/socket.c

@@ -947,9 +947,9 @@ PUBLIC void socketFree(int sid)
             while (recv(sp->sock, buf, sizeof(buf), 0) > 0) {}
         }
         
-        printf("---> closesocket header %d\n",sp->sock);
+        //printf("---> closesocket header %d\n",sp->sock);
         closesocket(sp->sock);
-        printf("---> closesocket tail\n");
+        //printf("---> closesocket tail\n");
     }
     wfree(sp->ip);
     wfree(sp);

+ 9 - 9
app/goahead-3.6.5/src/web_interface/src/config.c

@@ -70,7 +70,7 @@ void restoreFactorySettings(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -119,7 +119,7 @@ void web_ResetBMC(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -208,7 +208,7 @@ void web_GetLanInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -316,7 +316,7 @@ void web_SetLanInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -349,7 +349,7 @@ void web_GetRunTime(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -402,7 +402,7 @@ void web_SetModIdentifyOn(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -432,7 +432,7 @@ void web_SetModIdentifyOff(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -460,7 +460,7 @@ void web_SaveConfig(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -488,7 +488,7 @@ void web_RestoreConfig(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 3 - 3
app/goahead-3.6.5/src/web_interface/src/dashboard.c

@@ -117,7 +117,7 @@ void getDeviceInfo(Webs *wp){
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -189,7 +189,7 @@ void getSysInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
 sys_info_end: 
     if(sysInfo.title)
@@ -398,7 +398,7 @@ void getSensorInfo(Webs *wp){
         websWrite(wp, pStr);
         websFlush(wp, 0);
         websDone(wp);
-        printf("cJSON:%s\n", pStr);
+        //printf("cJSON:%s\n", pStr);
 
         if(root)
             cJSON_Delete(root);

+ 2 - 2
app/goahead-3.6.5/src/web_interface/src/fan.c

@@ -78,7 +78,7 @@ void getAllFanInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -150,7 +150,7 @@ void setFanInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 3 - 3
app/goahead-3.6.5/src/web_interface/src/fru.c

@@ -178,7 +178,7 @@ void getFruChassisInfo(Webs *wp)
     websWrite(wp, "%s", pStr); 
     websFlush(wp, 0);	//wait for all data to be written to the socket 
     websDone(wp);
-    printf("cJSON: %s\n", pStr);
+    //printf("cJSON: %s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -317,7 +317,7 @@ void getFruBoardInfo(Webs *wp)
     websWrite(wp, "%s", pStr);     
     websFlush(wp, 0);	//wait for all data to be written to the socket 
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -455,7 +455,7 @@ void getFruProductInfo(Webs *wp)
     websWrite(wp, "%s", pStr); 
     websFlush(wp, 0);	
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 6 - 6
app/goahead-3.6.5/src/web_interface/src/fw_update.c

@@ -59,7 +59,7 @@ void prepareDevice(Webs *wp)
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
  
     if(pStr)
         wfree(pStr);
@@ -114,7 +114,7 @@ void uploadFirmware(Webs *wp)
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:\n%s\n", pStr);
+    //printf("cJSON:\n%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -161,7 +161,7 @@ void updateFlash(Webs *wp)
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -221,7 +221,7 @@ void getUpdateProgress(Webs *wp)
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
     
     if(pStr)
         wfree(pStr);
@@ -283,7 +283,7 @@ void getEraseStatus(Webs *wp)
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -352,7 +352,7 @@ void getVerifyStatus(Webs *wp)
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 2 - 2
app/goahead-3.6.5/src/web_interface/src/remote_control.c

@@ -91,7 +91,7 @@ void chassisPwrCtrl(Webs *wp){
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);	
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -134,5 +134,5 @@ void getChassisStatus(Webs *wp)
     websWrite(wp, "%s", ptr);
     websFlush(wp, 0);	
     websDone(wp);
-    printf("---> cJson:%s\n", ptr);
+    //printf("---> cJson:%s\n", ptr);
 }

+ 5 - 5
app/goahead-3.6.5/src/web_interface/src/sel.c

@@ -57,7 +57,7 @@ void Web_ClearSEL(Webs *wp)
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -137,7 +137,7 @@ void GetAllSELEntriesSorted(Webs *wp)
             websWrite(wp, pStr);
             websFlush(wp, 0);
             websDone(wp);
-            printf("cJSON:%s\n", pStr);
+            //printf("cJSON:%s\n", pStr);
             
             if(root)
                 cJSON_Delete(root);
@@ -286,7 +286,7 @@ void GetAllSELEntriesSorted(Webs *wp)
     websWrite(wp, pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n",pStr);
+    //printf("cJSON:%s\n",pStr);
     
     if(root)
         cJSON_Delete(root);
@@ -382,7 +382,7 @@ void SetTime(Webs *wp)
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -456,7 +456,7 @@ void GetTime(Webs *wp)
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 2 - 2
app/goahead-3.6.5/src/web_interface/src/server_health.c

@@ -112,7 +112,7 @@ void setThreshold(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -272,7 +272,7 @@ void webGetSensorHistory(Webs *wp)
     websWrite(wp, "%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);

+ 6 - 6
app/goahead-3.6.5/src/web_interface/src/user.c

@@ -71,7 +71,7 @@ void getAllUserInfo(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -117,7 +117,7 @@ void setUserPassword(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -193,7 +193,7 @@ void addUser(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -239,7 +239,7 @@ void delUser(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -266,7 +266,7 @@ void checkLoginStatus(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);
@@ -293,7 +293,7 @@ void logout(Webs *wp){
     websWrite(wp,"%s", pStr);
     websFlush(wp, 0);
     websDone(wp);
-    printf("cJSON:%s\n", pStr);
+    //printf("cJSON:%s\n", pStr);
 
     if(pStr)
         wfree(pStr);