fix papi_perror compile error
authorYanhua Sun <sun51@illinois.edu>
Fri, 13 Sep 2013 16:03:01 +0000 (11:03 -0500)
committerYanhua Sun <sun51@illinois.edu>
Fri, 13 Sep 2013 16:03:01 +0000 (11:03 -0500)
src/ck-perf/trace-projections.C

index 4c6209e9c0b980a2861d7f5390c5f95375c33c4d..f41d1fb81e956884a63c97c10f15d4bd4eec6dd0 100644 (file)
@@ -1259,7 +1259,8 @@ TraceProjections::TraceProjections(char **argv):
       CmiAbort("PAPI events conflict! Please re-assign event types!\n");
     } else {
       char error_str[PAPI_MAX_STR_LEN];
-      PAPI_perror(papiRetValue,error_str,PAPI_MAX_STR_LEN);
+      PAPI_perror(error_str);
+      //PAPI_perror(papiRetValue,error_str,PAPI_MAX_STR_LEN);
       CmiPrintf("PAPI failed with error %s val %d\n",error_str,papiRetValue);
       CmiAbort("PAPI failed to add designated events!\n");
     }