Fix compilation warnings
[lttv.git] / lttv / lttv / sync / event_matching_broadcast.c
index ff45a8a71b7729848a6ef61d2918629211063482..968856979b157496dcd6c00ac5c2d64e7740c758 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include <errno.h>
+#include <inttypes.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
@@ -369,7 +370,7 @@ static void openGraphDataFiles(SyncState* const syncState)
        MatchingGraphsBroadcast* graphs= ((MatchingDataBroadcast*)
                syncState->matchingData)->graphs;
 
-       cwd= changeToGraphDir(syncState->graphsDir);
+       cwd= changeToGraphsDir(syncState->graphsDir);
 
        graphs->accuracyPoints= malloc(syncState->traceNb * sizeof(FILE**));
        graphs->pointsNb= malloc(syncState->traceNb * sizeof(unsigned int*));
@@ -425,7 +426,7 @@ static void writeAccuracyPoints(MatchingGraphsBroadcast* graphs, const
                        if (eventI->traceNum < eventJ->traceNum)
                        {
                                fprintf(graphs->accuracyPoints[eventJ->traceNum][eventI->traceNum],
-                                       "%20llu %20.9f\n", eventI->cpuTime,
+                                       "%20" PRIu64 " %20.9f\n", eventI->cpuTime,
                                        wallTimeSub(&eventJ->wallTime, &eventI->wallTime));
                                graphs->pointsNb[eventJ->traceNum][eventI->traceNum]++;
                        }
This page took 0.02364 seconds and 4 git commands to generate.