Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] hosts might have spaces
authorLucas Schnorr <Lucas.Schnorr@imag.fr>
Thu, 15 Sep 2011 15:41:03 +0000 (17:41 +0200)
committerLucas Schnorr <Lucas.Schnorr@imag.fr>
Fri, 16 Sep 2011 07:29:18 +0000 (09:29 +0200)
- avoid registering them by using quotation marks

src/instr/instr_paje_trace.c

index a8060aa..57c644a 100644 (file)
@@ -422,14 +422,14 @@ static void print_pajeCreateContainer(paje_event_t event)
 {
   XBT_DEBUG("%s: event_type=%d, timestamp=%f", __FUNCTION__, event->event_type, event->timestamp);
   if (event->timestamp == 0){
-    fprintf(tracing_file, "%d 0 %s %s %s %s\n",
+    fprintf(tracing_file, "%d 0 %s %s %s \"%s\"\n",
         event->event_type,
         ((createContainer_t)event->data)->container->id,
         ((createContainer_t)event->data)->container->type->id,
         ((createContainer_t)event->data)->container->father->id,
         ((createContainer_t)event->data)->container->name);
   }else{
-    fprintf(tracing_file, "%d %lf %s %s %s %s\n",
+    fprintf(tracing_file, "%d %lf %s %s %s \"%s\"\n",
         event->event_type,
         event->timestamp,
         ((createContainer_t)event->data)->container->id,