Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A few more tiers file and a convenient perl script for the alnem project. I
[simgrid.git] / src / xbt / log_default_appender.c
index afbf413..44302a0 100644 (file)
@@ -12,8 +12,6 @@
 #include <stdio.h>
 #include "gras/virtu.h"
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(log_app,log,"default logging handler");
-
 /**
  * The root category's default logging function.
  */
@@ -43,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;
 }