Skip to content

Commit

Permalink
Fix varnishtest barrier error messages
Browse files Browse the repository at this point in the history
Spotted by @fgsch
  • Loading branch information
dridi committed Mar 31, 2016
1 parent 3426e8c commit e7f07be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/varnishtest/vtc_barrier.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion lib/libvmod_debug/vmod_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e7f07be

Please sign in to comment.