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
9e25fff1
Commit
9e25fff1
authored
Mar 14, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More minor tweaks on panic output
parent
04132836
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
cache_panic.c
bin/varnishd/cache/cache_panic.c
+8
-8
storage_simple.c
bin/varnishd/storage/storage_simple.c
+1
-1
No files found.
bin/varnishd/cache/cache_panic.c
View file @
9e25fff1
...
...
@@ -145,19 +145,19 @@ pan_ws(struct vsb *vsb, const struct ws *ws)
if
(
!
(
ws
->
id
[
0
]
&
0x20
))
VSB_printf
(
vsb
,
"OVERFLOWED "
);
VSB_printf
(
vsb
,
"id =
\"
%s
\"
,
\n
"
,
ws
->
id
);
VSB_printf
(
vsb
,
"{s,
f,r,
e} = {%p"
,
ws
->
s
);
VSB_printf
(
vsb
,
"{s,
f, r,
e} = {%p"
,
ws
->
s
);
if
(
ws
->
f
>
ws
->
s
)
VSB_printf
(
vsb
,
",+%ld"
,
(
long
)
(
ws
->
f
-
ws
->
s
));
VSB_printf
(
vsb
,
",
+%ld"
,
(
long
)
(
ws
->
f
-
ws
->
s
));
else
VSB_printf
(
vsb
,
",%p"
,
ws
->
f
);
VSB_printf
(
vsb
,
",
%p"
,
ws
->
f
);
if
(
ws
->
r
>
ws
->
s
)
VSB_printf
(
vsb
,
",+%ld"
,
(
long
)
(
ws
->
r
-
ws
->
s
));
VSB_printf
(
vsb
,
",
+%ld"
,
(
long
)
(
ws
->
r
-
ws
->
s
));
else
VSB_printf
(
vsb
,
",%p"
,
ws
->
r
);
VSB_printf
(
vsb
,
",
%p"
,
ws
->
r
);
if
(
ws
->
e
>
ws
->
s
)
VSB_printf
(
vsb
,
",+%ld"
,
(
long
)
(
ws
->
e
-
ws
->
s
));
VSB_printf
(
vsb
,
",
+%ld"
,
(
long
)
(
ws
->
e
-
ws
->
s
));
else
VSB_printf
(
vsb
,
",%p"
,
ws
->
e
);
VSB_printf
(
vsb
,
",
%p"
,
ws
->
e
);
VSB_printf
(
vsb
,
"},
\n
"
);
VSB_indent
(
vsb
,
-
2
);
VSB_printf
(
vsb
,
"},
\n
"
);
...
...
@@ -249,7 +249,7 @@ pan_objcore(struct vsb *vsb, const char *typ, const struct objcore *oc)
VSB_printf
(
vsb
,
"exp_flags = 0x%x,
\n
"
,
oc
->
exp_flags
);
if
(
oc
->
boc
!=
NULL
)
pan_boc
(
vsb
,
oc
->
boc
);
VSB_printf
(
vsb
,
"exp = {%f,
%f,%f,
%f}
\n
"
,
VSB_printf
(
vsb
,
"exp = {%f,
%f, %f,
%f}
\n
"
,
oc
->
t_origin
,
oc
->
ttl
,
oc
->
grace
,
oc
->
keep
);
VSB_printf
(
vsb
,
"objhead = %p,
\n
"
,
oc
->
objhead
);
VSB_printf
(
vsb
,
"stevedore = %p"
,
oc
->
stobj
->
stevedore
);
...
...
bin/varnishd/storage/storage_simple.c
View file @
9e25fff1
...
...
@@ -645,7 +645,7 @@ const struct obj_methods SML_methods = {
static
void
sml_panic_st
(
struct
vsb
*
vsb
,
const
char
*
hd
,
const
struct
storage
*
st
)
{
VSB_printf
(
vsb
,
"%s %p {priv=%p
ptr=%p len=%u
space=%u}
\n
"
,
VSB_printf
(
vsb
,
"%s %p {priv=%p
, ptr=%p, len=%u,
space=%u}
\n
"
,
hd
,
st
,
st
->
priv
,
st
->
ptr
,
st
->
len
,
st
->
space
);
}
...
...
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