Commit 673a8555 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Fix error message print on undefined macro expansion in

varnishtest. It would print to end of line instead of parsed macro
name length.
parent 013daf98
......@@ -196,7 +196,8 @@ macro_expand(struct vtclog *vl, const char *text)
m = macro_get(p, q);
if (m == NULL) {
VSB_delete(vsb);
vtc_log(vl, 0, "Macro ${%s} not found", p);
vtc_log(vl, 0, "Macro ${%.*s} not found", (int)(q - p),
p);
return (NULL);
}
VSB_printf(vsb, "%s", m);
......
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