changeset 1868:0f3aebb436ac

Fix map block printing in logfile etc.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 04 Nov 2017 15:15:53 +0200
parents 8204a8c44dba
children 03b6f161ce90
files mapsearch.c
diffstat 1 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mapsearch.c	Fri Nov 03 23:50:34 2017 +0200
+++ b/mapsearch.c	Sat Nov 04 15:15:53 2017 +0200
@@ -205,12 +205,6 @@
 }
 
 
-void mapBlockPrintDo(const MapBlock *block)
-{
-    (void) block;
-}
-
-
 void mapLogStr(int level, const char *line)
 {
     if (level <= (1 << th_verbosityLevel))
@@ -861,7 +855,12 @@
     }
 
     if (th_verbosityLevel >= 2)
-        mapBlockPrintDo(pattern);
+    {
+        FILE *tmp = (setLogFH != NULL) ? setLogFH : stdout;
+        fprintf(tmp, "----------------------------\n");
+        mapBlockPrint(tmp, pattern);
+        fprintf(tmp, "----------------------------\n");
+    }
 
     // Entropy check
     int entropy = mapBlockGetEntropy(pattern, optCleanChars, strlen(optCleanChars));