Commit 63bb0b48 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Dump non-printable chars as hex instead of octal

parent 87b335bc
......@@ -227,7 +227,8 @@ vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len)
if (len < 0)
len = strlen(str);
VSB_quote_pfx(vl->vsb, buf, str,
len > MAX_DUMP ? MAX_DUMP : len, VSB_QUOTE_UNSAFE);
len > MAX_DUMP ? MAX_DUMP : len,
VSB_QUOTE_UNSAFE | VSB_QUOTE_ESCHEX);
if (len > MAX_DUMP)
VSB_printf(vl->vsb, "%s [...] (%d)\n",
buf, len - MAX_DUMP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment