]> AND Public Git Repository - simgrid.git/blobdiff - src/xbt/xbt_log_appender_file.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Better fix to the comparison between signed and unsigned int around dynar size: chang...
[simgrid.git] / src / xbt / xbt_log_appender_file.c
index c63b7240aba0aa61938235f9c1b297e493b0f953..83af8a5b07b44117d8d9d993ff9df7c1d950e9d1 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,7 +21,7 @@ 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(char *arg){