+ WRBUF hex = wrbuf_alloc();
+
+ wrbuf_puts(hex, "Tag ");
+ wrbuf_write_escaped(hex, buf + entry_p, 3);
+ wrbuf_puts(hex, ", length ");
+ wrbuf_write_escaped(hex, buf + entry_p + 3,
+ length_data_entry);
+ wrbuf_puts(hex, ", starting ");
+ wrbuf_write_escaped(hex, buf + entry_p + 3 + length_data_entry,
+ length_starting);
+ yaz_marc_cprintf(mt, "Directory offset %d: %s",
+ entry_p, wrbuf_cstr(hex));
+ wrbuf_destroy(hex);