Commit a6ac776e authored by Nils Goroll's avatar Nils Goroll

binary data formatting has been unified in varnish-cache

parent 21e14e69
......@@ -1617,7 +1617,7 @@ static const char
args.tag = SLT_Debug;
format_SLT(&tx, &args, &str, &len);
MAN(str);
#define EXP_SLT_BINARY "\"foo\\0\\377 bar\\0\\\\\\\"\\n\\r\\t\""
#define EXP_SLT_BINARY "\"foo\\000\\377 bar\\000\\\\\\\"\\n\\r\\t\""
VMASSERT(strncmp(str, EXP_SLT_BINARY, strlen(EXP_SLT_BINARY)) == 0,
"format_SLT with binary data: Expected '%s', got '%s'",
EXP_SLT_BINARY, str);
......@@ -2057,9 +2057,9 @@ static const char
"barhdr - GET 283 bar=baz&quux=wilco GET "\
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.000166 hit hit "\
"logload MATCH ACL \"10.0.0.0\"/8 \"foo\\0\\377 bar\" " \
"logload MATCH ACL \"10.0.0.0\"/8 \"foo\\000\\377 bar\" " \
"1429213569.602005 0.000000 0.000000 60 0.000125 4711 1147 c "\
"MATCH ACL \"10.0.0.0\"/8 \"foo\\0\\377 bar\" "\
"MATCH ACL \"10.0.0.0\"/8 \"foo\\000\\377 bar\" "\
"1429213569.602005 0.000000 0.000000 60 0.000125\n"
tm = localtime(&t);
MAN(strftime(strftime_s, BUFSIZ, EXP_FULL_CLIENT_OUTPUT, tm));
......@@ -2139,9 +2139,9 @@ static const char
"60 foohdr barhdr - GET 283 bar=baz&quux=wilco GET "\
"http://foobar.com/foo?bar=baz&quux=wilco HTTP/1.1 200 "\
"[%d/%b/%Y:%T %z] 0 %F-%T.529143 /foo varnish 0.002837 logload "\
"2 chunked stream \"foo\\0\\377 bar\" "\
"2 chunked stream \"foo\\000\\377 bar\" "\
"1429210777.728290 0.000048 0.000048 283 0.000048 4711 1147 b "\
"2 chunked stream \"foo\\0\\377 bar\" "\
"2 chunked stream \"foo\\000\\377 bar\" "\
"1429210777.728290 0.000048 0.000048 283 0.000048\n"
tm = localtime(&t);
MAN(strftime(strftime_s, BUFSIZ, EXP_FULL_BACKEND_OUTPUT, tm));
......
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