From 8958d80adbbfdf697217c46e4144cddb1d8ca05a Mon Sep 17 00:00:00 2001 From: jihoonl Date: Wed, 17 Feb 2010 00:39:38 +0000 Subject: [PATCH] remove debug messages --- .../src/Runtime/DSTM/interface_recovery/dstmserver.c | 2 +- Robust/src/Runtime/DSTM/interface_recovery/trans.c | 10 +++++----- Robust/src/Runtime/thread.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Robust/src/Runtime/DSTM/interface_recovery/dstmserver.c b/Robust/src/Runtime/DSTM/interface_recovery/dstmserver.c index a456312b..84329c23 100644 --- a/Robust/src/Runtime/DSTM/interface_recovery/dstmserver.c +++ b/Robust/src/Runtime/DSTM/interface_recovery/dstmserver.c @@ -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 diff --git a/Robust/src/Runtime/DSTM/interface_recovery/trans.c b/Robust/src/Runtime/DSTM/interface_recovery/trans.c index 46a19dd9..2a4249a0 100644 --- a/Robust/src/Runtime/DSTM/interface_recovery/trans.c +++ b/Robust/src/Runtime/DSTM/interface_recovery/trans.c @@ -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 diff --git a/Robust/src/Runtime/thread.c b/Robust/src/Runtime/thread.c index 5f94973f..c46b1000 100644 --- a/Robust/src/Runtime/thread.c +++ b/Robust/src/Runtime/thread.c @@ -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++; -- 2.34.1