Commit e7f07bee authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Fix varnishtest barrier error messages

Spotted by @fgsch
parent 3426e8c1
......@@ -325,7 +325,7 @@ barrier_sock_sync(struct barrier *b, struct vtclog *vl)
AZ(close(sock));
if (sz < 0)
vtc_log(vl, 0, "Barrier(%s) connection failed: %s (errno=%d)",
vtc_log(vl, 0, "Barrier(%s) read failed: %s (errno=%d)",
b->name, strerror(i), i);
if (sz > 0)
vtc_log(vl, 0, "Barrier(%s) unexpected data (%ldB)",
......
......@@ -507,7 +507,7 @@ vmod_barrier_sync(VRT_CTX, VCL_STRING addr)
return (1);
if (sz < 0)
VSLb(ctx->vsl, SLT_Error,
"Barrier connection failed: %s (errno=%d)", strerror(i), i);
"Barrier read failed: %s (errno=%d)", strerror(i), i);
if (sz > 0)
VSLb(ctx->vsl, SLT_Error, "Barrier unexpected data (%ldB)", sz);
return (0);
......
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