add -fPIC option to the C compiler, required in f31
[vsys.git] / globals.ml
index 4d922e5..ce12139 100644 (file)
@@ -9,7 +9,8 @@ let log_filepath = ref "/var/log/vsys"
 let failsafe = ref false
 
 let logfd = ref Pervasives.stdout
-let logprint fmt = Printf.printf fmt
+let logprint fmt = Printf.fprintf !logfd (fmt ^^ "%!")
+
 let debprint fmt = if (!debug) then Printf.fprintf !logfd (fmt ^^ "%!")
 let print fmt = Printf.printf (fmt ^^ "%!")