]> mj.ucw.cz Git - libucw.git/blobdiff - images/image-sim-test.c
align signature size
[libucw.git] / images / image-sim-test.c
index e0a1899e2f94ce8277ba083931a227fc4c8e6cc7..bac384ec28a673113effe453b46621e08fda9664 100644 (file)
@@ -62,6 +62,12 @@ static byte *segmentation_name_2;
 #define MSG(x...) do{ if (verbose) log(L_INFO, ##x); }while(0)
 #define TRY(x) do{ if (!(x)) die("Error: %s", it.err_msg); }while(0)
 
+static void
+msg_str(byte *s, void *param UNUSED)
+{
+  MSG("%s", s);
+}
+
 static void
 dump_signature(struct image_signature *sig)
 {
@@ -268,7 +274,7 @@ main(int argc, char **argv)
       if (verbose)
         {
           struct fastbuf *fb = bfdopen(0, 4096);
-          dist = image_signatures_dist_explain(&sig1, &sig2, fb);
+          dist = image_signatures_dist_explain(&sig1, &sig2, msg_str, NULL);
           bclose(fb);
        }
       else