Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
2d0843ea
Commit
2d0843ea
authored
Mar 05, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename SLT_F_BINARY to the more precise SLT_F_UNSAFE
parent
0f7baca4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
vsl_tags.h
include/tbl/vsl_tags.h
+3
-3
vsl.h
include/vapi/vsl.h
+1
-1
vsl_int.h
include/vapi/vsl_int.h
+1
-1
vsl.c
lib/libvarnishapi/vsl.c
+2
-2
No files found.
include/tbl/vsl_tags.h
View file @
2d0843ea
...
...
@@ -47,7 +47,7 @@
#define NODEF_NOTICE \
"NB: This log record is masked by default.\n\n"
SLTM
(
Debug
,
SLT_F_
BINARY
,
"Debug messages"
,
SLTM
(
Debug
,
SLT_F_
UNSAFE
,
"Debug messages"
,
"Debug messages can normally be ignored, but are sometimes"
" helpful during trouble-shooting. Most debug messages must"
" be explicitly enabled with parameters.
\n\n
"
...
...
@@ -126,7 +126,7 @@ SLTM(BackendClose, 0, "Backend connection closed",
"
\n
"
)
SLTM
(
HttpGarbage
,
SLT_F_
BINARY
,
"Unparseable HTTP request"
,
SLTM
(
HttpGarbage
,
SLT_F_
UNSAFE
,
"Unparseable HTTP request"
,
"Logs the content of unparseable HTTP requests.
\n\n
"
)
...
...
@@ -363,7 +363,7 @@ SLTM(ESI_xmlerror, 0, "ESI parser error or warning message",
" The log record describes the problem encountered."
)
SLTM
(
Hash
,
SLT_F_
BINARY
,
"Value added to hash"
,
SLTM
(
Hash
,
SLT_F_
UNSAFE
,
"Value added to hash"
,
"This value was added to the object lookup hash.
\n\n
"
NODEF_NOTICE
)
...
...
include/vapi/vsl.h
View file @
2d0843ea
...
...
@@ -163,7 +163,7 @@ extern const unsigned VSL_tagflags[SLT__MAX];
* Tag flags array.
* Use these macros with VSL_tagflags (included from vsl_int.h):
*
* VSL_tagflags[tag] & SLT_F_
BINARY
* VSL_tagflags[tag] & SLT_F_
UNSAFE
* Non-zero if the payload with this tag may include
* non-printable characters
*
...
...
include/vapi/vsl_int.h
View file @
2d0843ea
...
...
@@ -97,6 +97,6 @@ enum VSL_tag_e {
/* VSL tag flags */
#define SLT_F_UNUSED (1 << 0)
#define SLT_F_
BINARY
(1 << 1)
#define SLT_F_
UNSAFE
(1 << 1)
#endif
/* VAPI_VSL_INT_H_INCLUDED */
lib/libvarnishapi/vsl.c
View file @
2d0843ea
...
...
@@ -244,7 +244,7 @@ VSL_Print(const struct VSL_data *vsl, const struct VSL_cursor *c, void *fo)
'b'
:
'-'
;
data
=
VSL_CDATA
(
c
->
rec
.
ptr
);
if
(
VSL_tagflags
[
tag
]
&
SLT_F_
BINARY
)
{
if
(
VSL_tagflags
[
tag
]
&
SLT_F_
UNSAFE
)
{
VSL_PRINT
(
fo
,
"%10u %-14s %c
\"
"
,
vxid
,
VSL_tags
[
tag
],
type
);
while
(
len
--
>
0
)
{
if
(
len
==
0
&&
tag
==
SLT_Debug
&&
*
data
==
'\0'
)
...
...
@@ -279,7 +279,7 @@ VSL_PrintTerse(const struct VSL_data *vsl, const struct VSL_cursor *c, void *fo)
len
=
VSL_LEN
(
c
->
rec
.
ptr
);
data
=
VSL_CDATA
(
c
->
rec
.
ptr
);
if
(
VSL_tagflags
[
tag
]
&
SLT_F_
BINARY
)
{
if
(
VSL_tagflags
[
tag
]
&
SLT_F_
UNSAFE
)
{
VSL_PRINT
(
fo
,
"%-14s
\"
"
,
VSL_tags
[
tag
]);
while
(
len
--
>
0
)
{
if
(
len
==
0
&&
tag
==
SLT_Debug
&&
*
data
==
'\0'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment