diff --git a/log.c b/log.c
--- a/log.c
+++ b/log.c
-@@ -57,6 +57,9 @@ extern char curr_dir[];
+@@ -58,6 +58,9 @@ extern char curr_dir[];
extern char *module_dir;
extern unsigned int module_dirlen;
static int log_initialised;
static int logfile_was_closed;
static FILE *logfile_fp;
-@@ -622,6 +625,19 @@ static void log_formatted(enum logcode code, const char *format, const char *op,
+@@ -628,6 +631,19 @@ static void log_formatted(enum logcode code, const char *format, const char *op,
snprintf(buf2, sizeof buf2, fmt, (double)b);
n = buf2;
break;