when STATS is off, only PE 0 complains if user tries to use +cs.
authorGengbin Zheng <gzheng@bp-login1.(none)>
Tue, 1 Mar 2011 06:01:37 +0000 (00:01 -0600)
committerGengbin Zheng <gzheng@bp-login1.(none)>
Tue, 1 Mar 2011 06:01:37 +0000 (00:01 -0600)
src/ck-core/init.C

index e5916af5ff21d827f210438145b451073815aceb..9dcd6bd5164dd7f2d422b829dda7ddae96fe466f 100644 (file)
@@ -180,7 +180,7 @@ static InitCallTable _initCallTable;
 #define _STATS_ON(x) (x) = 1
 #else
 #define _STATS_ON(x) \
-          CmiPrintf("stats unavailable in optimized version. ignoring...\n");
+          if (CkMyPe()==0) CmiPrintf("stats unavailable in optimized version. ignoring...\n");
 #endif
 
 // fault tolerance