Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ops, wasn't compilable under windows
[simgrid.git] / src / xbt / xbt_log_layout_simple.c
index ec68d8b..5933bf9 100644 (file)
@@ -35,8 +35,8 @@ static char *xbt_log_layout_simple_doit(xbt_log_layout_t l,
   p += sprintf(res,"[");;
   /* Display the proc info if available */
   if(strlen(xbt_procname()))
-    p += sprintf(p,"%s:%s:(%ld) ", 
-                gras_os_myname(), xbt_procname(),gras_os_getpid());
+    p += sprintf(p,"%s:%s:(%d) ", 
+                gras_os_myname(), xbt_procname(),(*xbt_getpid)());
 
   /* Display the date */
   p += sprintf(p,"%f] ", gras_os_time()-begin_of_time);
@@ -59,7 +59,7 @@ static char *xbt_log_layout_simple_doit(xbt_log_layout_t l,
   return res;
 }
 
-xbt_log_layout_t xbt_log_layout_simple_new() {
+xbt_log_layout_t xbt_log_layout_simple_new(char *arg) {
   xbt_log_layout_t res = xbt_new0(s_xbt_log_layout_t,1);
   res->do_layout = xbt_log_layout_simple_doit;
   return res;