Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a makefile to build the simgrid dll
[simgrid.git] / src / xbt / log_default_appender.c
index df94569..44302a0 100644 (file)
@@ -41,10 +41,10 @@ static const char* xbt_logappender_verbose_information(void) {
     begin_of_time=gras_os_time();
 
   if(strlen(xbt_procname()))
-    sprintf(buffer,"%s:%s:(%d) %f", gras_os_myname(),
+    sprintf(buffer,"%s:%s:(%ld) %f", gras_os_myname(),
            xbt_procname(),gras_os_getpid(),gras_os_time()-begin_of_time);
   else 
-    buffer[0]=0;
+    sprintf(buffer,"%f", gras_os_time()-begin_of_time);
   
   return buffer;
 }