log_printf can be called concurently (removed static buffer)
[psensor.git] / src / lib / log.h
index 5aaf22b..cf4fcd3 100644 (file)
@@ -27,12 +27,13 @@ enum log_level {
        LOG_DEBUG
 };
 
-void log_open(const char *path, int lvl);
+void log_open(const char *path);
 
 void log_printf(int lvl, const char *fmt, ...);
 
 void log_close();
 
+/* level of the log file. */
 extern int log_level;
 
 #endif