2020-02-11 22:01:19 +00:00
|
|
|
commit b0af060fb688b8fc2ff3817ea99430432668b291
|
|
|
|
Author: Ingvar Hagelund <ingvar@redpill-linpro.com>
|
|
|
|
Date: Tue Feb 11 12:56:54 2020 +0100
|
|
|
|
|
|
|
|
simple fix for fedora/gcc-10.0.1: -Werror=format-overflow, by some reason hit on s390x
|
|
|
|
|
|
|
|
diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
|
|
|
|
index 1ec748cb6..09e49d258 100644
|
|
|
|
--- a/bin/varnishtest/vtc_varnish.c
|
|
|
|
+++ b/bin/varnishtest/vtc_varnish.c
|
|
|
|
@@ -121,7 +121,7 @@ varnish_ask_cli(const struct varnish *v, const char *cmd, char **repl)
|
2020-02-10 23:04:59 +00:00
|
|
|
i = VCLI_ReadResult(v->cli_fd, &retval, &r, vtc_maxdur);
|
2020-02-11 22:01:19 +00:00
|
|
|
if (i != 0 && !vtc_stop)
|
2020-02-10 23:04:59 +00:00
|
|
|
vtc_fatal(v->vl, "CLI failed (%s) = %d %u %s",
|
2020-02-11 22:01:19 +00:00
|
|
|
- cmd, i, retval, r);
|
|
|
|
+ cmd != NULL ? cmd : "NULL", i, retval, r);
|
2020-02-10 23:04:59 +00:00
|
|
|
vtc_log(v->vl, 3, "CLI RX %u", retval);
|
2020-02-11 22:01:19 +00:00
|
|
|
vtc_dump(v->vl, 4, "CLI RX", r, -1);
|
|
|
|
if (repl != NULL)
|