remove debug messages
authorjihoonl <jihoonl>
Wed, 17 Feb 2010 00:39:38 +0000 (00:39 +0000)
committerjihoonl <jihoonl>
Wed, 17 Feb 2010 00:39:38 +0000 (00:39 +0000)
Robust/src/Runtime/DSTM/interface_recovery/dstmserver.c
Robust/src/Runtime/DSTM/interface_recovery/trans.c
Robust/src/Runtime/thread.c

index a456312b97949af2c5350514f44e7af0aa26c38f..84329c2336d708e71299f179f2396819bedffd9e 100644 (file)
@@ -1710,7 +1710,7 @@ checkversion:
 /* go through oid's notifylist and clear them */
 void clearNotifyList(unsigned int oid)
 {
-#ifndef DEBUG
+#ifdef DEBUG
   printf("%s -> Entering\n",__func__);
 #endif
 
index 46a19dd977b0b4efb7df03b7fd88f4e29b93691d..2a4249a0d3b3da179d83b760cb2ab135105e85c9 100644 (file)
@@ -2627,7 +2627,7 @@ void duplicateLocalBackupObjects(unsigned int mid) {
        int tempsize, sd;
   int i;
        char *dupeptr, ctrl, response;
-#ifndef DEBUG
+#ifdef DEBUG
        printf("%s-> Start; backup mid:%s\n", __func__, midtoIPString(mid));  
 #endif
 
@@ -2657,7 +2657,7 @@ void duplicateLocalBackupObjects(unsigned int mid) {
 #endif
 
        if(response != DUPLICATION_COMPLETE) {
-#ifndef DEBUG
+#ifdef DEBUG
     printf("%s -> DUPLICATION_FAIL\n",__func__);
 #endif
     exit(-1);
@@ -2876,7 +2876,7 @@ int reqNotify(unsigned int *oidarry, unsigned short *versionarry, unsigned int n
     return -1;
   } else {
 
-#ifndef DEBUG
+#ifdef DEBUG
     printf("%s -> Pmid = %s\n",__func__,midtoIPString(pmid));
 #ifdef RECOVERY
     printf("%s -> Bmid = %s\n",__func__,midtoIPString(bmid));
@@ -2891,7 +2891,7 @@ int reqNotify(unsigned int *oidarry, unsigned short *versionarry, unsigned int n
 
     for(i = 0;i < numoid; i++) {
       oid = oidarry[i];
-#ifndef DEBUG
+#ifdef DEBUG
       printf("%s -> oid[%d] = %d\n",__func__,i,oidarry[i]);
 #endif
       *((unsigned int *)(&msg[1] + size)) = oid;
@@ -2944,7 +2944,7 @@ void threadNotify(unsigned int oid, unsigned short version, unsigned int tid) {
   int objIsFound = 0, index = -1;
   unsigned int i;
   void *ptr;
-#ifndef DEBUG
+#ifdef DEBUG
   printf("%s -> oid = %d   vesion = %d    tid = %d\n",__func__,oid,version,tid);
 #endif
 
index 5f94973ff84a5144fcf024ff4ab688fb596fd30e..c46b100039a8e9544853c44d5adcb9729673b9fa 100644 (file)
@@ -590,7 +590,7 @@ void startDSMthread(int oid, int objType) {
   int retval;
   pthread_attr_t nattr;
 
-  printf("%s -> oid : %u\n",__func__,oid);
+//  printf("%s -> oid : %u\n",__func__,oid);
 
   pthread_mutex_lock(&gclistlock);
   threadcount++;