Print

Print


Commit in epics/trunk/epics_example/myexampleApp/src on MAIN
client_util.c+3-3846 -> 847
change debug level

epics/trunk/epics_example/myexampleApp/src
client_util.c 846 -> 847
--- epics/trunk/epics_example/myexampleApp/src/client_util.c	2014-08-12 19:03:18 UTC (rev 846)
+++ epics/trunk/epics_example/myexampleApp/src/client_util.c	2014-08-12 21:00:15 UTC (rev 847)
@@ -3,7 +3,7 @@
 #include <ctype.h>
 #include "sys/ioctl.h"
 
-int client_util_debug = 1;
+int client_util_debug = 0;
 char *xml_string = NULL;
 xmlDoc* doc = NULL;
 xmlNode* xml_root = NULL;
@@ -327,11 +327,11 @@
 void getXMLValue(char tag[], char value[],const unsigned int MAX) {
   if(client_util_debug>0) printf("getXMLValue: tag \"%s\"\n",tag);
   if(doc==NULL) {
-    printf("WARNING: getXMLValue: couldn't get xml document %p\n",doc);
+    if(client_util_debug>0) printf("WARNING: getXMLValue: couldn't get xml document %p\n",doc);
     return;
   }
   if(xml_root==NULL) {
-    printf("WARNING: getXMLValue: couldn't get root from document\n");
+    if(client_util_debug>0) printf("WARNING: getXMLValue: couldn't get root from document\n");
     return;
   }  
   if(client_util_debug>1) printf("getXMLValue: retrieve value from xml document\n");
SVNspam 0.1