Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] avoiding key clashes on paje links
authorschnorr <Lucas.Schnorr@imag.fr>
Wed, 22 Aug 2012 21:39:39 +0000 (23:39 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Wed, 22 Aug 2012 21:43:49 +0000 (23:43 +0200)
src/instr/instr_smpi.c

index 691b857..b16c5ac 100644 (file)
@@ -87,7 +87,7 @@ static char *TRACE_smpi_put_key(int src, int dst, char *key, int n)
   }
   //generate the key
   static unsigned long long counter = 0;
-  snprintf(key, n, "%d%d%llu", src, dst, counter++);
+  snprintf(key, n, "%d_%d_%llu", src, dst, counter++);
 
   //push it
   char *a = (char*)xbt_strdup(key);