Skip to content

Instantly share code, notes, and snippets.

@yoppi
Created April 25, 2016 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoppi/64325cc83c7a46b377dd80a52cd2b55f to your computer and use it in GitHub Desktop.
Save yoppi/64325cc83c7a46b377dd80a52cd2b55f to your computer and use it in GitHub Desktop.
diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index ea29f2e..ff971f3 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -1070,10 +1070,10 @@ cmd_var_resolve(struct stream *s, char *spec, char *buf)
*/
else if (!strcmp(spec, "stream.window")) {
if (s->id) {
- snprintf(buf, 20, "%ld", s->ws);
+ snprintf(buf, 20, "%lld", s->ws);
return (buf);
} else {
- snprintf(buf, 20, "%ld", s->hp->ws);
+ snprintf(buf, 20, "%lld", s->hp->ws);
return (buf);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment