Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move private definition out of the log.h public header. Moreover, this public header...
[simgrid.git] / src / xbt / xbt_log_appender_file.c
index 0ccca35..83af8a5 100644 (file)
@@ -8,7 +8,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "xbt/sysdep.h"
-#include "xbt/log.h"
+#include "xbt/log_private.h"
 #include <stdio.h>
 
 /**
@@ -21,12 +21,11 @@ extern const char *xbt_log_priority_names[7];
 static void append_file(xbt_log_appender_t this_appender,
                        char *str) {
 
-  fprintf((FILE*)(this_appender->data), str);
+  fprintf((FILE*)(this_appender->data), "%s", str);
 }
 
-xbt_log_appender_t xbt_log_appender_file_new(xbt_log_layout_t lout){
+xbt_log_appender_t xbt_log_appender_file_new(char *arg){
   xbt_log_appender_t res = xbt_new0(s_xbt_log_appender_t,1);
-  res->layout = lout;
   res->do_append = append_file;
   res->free_ = NULL;
   res->data = (void*)stderr;