[master] 63bb0b489 Dump non-printable chars as hex instead of octal
Federico G. Schwindt
fgsch at lodoss.net
Fri Aug 2 11:31:10 UTC 2019
commit 63bb0b489754ef3a228a2d84b0e648e157580f4e
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Fri Aug 2 12:25:19 2019 +0100
Dump non-printable chars as hex instead of octal
diff --git a/bin/varnishtest/vtc_log.c b/bin/varnishtest/vtc_log.c
index 76935d6a8..1bdd5699c 100644
--- a/bin/varnishtest/vtc_log.c
+++ b/bin/varnishtest/vtc_log.c
@@ -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);
More information about the varnish-commit
mailing list