#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)
{
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