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
9577a7a6
Commit
9577a7a6
authored
Feb 25, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing newline, move thread/errno info after backtrace.
parent
436426e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cache_panic.c
bin/varnishd/cache/cache_panic.c
+8
-8
No files found.
bin/varnishd/cache/cache_panic.c
View file @
9577a7a6
...
@@ -605,7 +605,7 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
...
@@ -605,7 +605,7 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
case
VAS_MISSING
:
case
VAS_MISSING
:
VSB_printf
(
pan_vsb
,
VSB_printf
(
pan_vsb
,
"Missing errorhandling code in %s(), %s line %d:
\n
"
"Missing errorhandling code in %s(), %s line %d:
\n
"
" Condition(%s) not true."
,
" Condition(%s) not true.
\n
"
,
func
,
file
,
line
,
cond
);
func
,
file
,
line
,
cond
);
break
;
break
;
case
VAS_INCOMPLETE
:
case
VAS_INCOMPLETE
:
...
@@ -621,13 +621,6 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
...
@@ -621,13 +621,6 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
func
,
file
,
line
,
cond
);
func
,
file
,
line
,
cond
);
break
;
break
;
}
}
if
(
err
)
VSB_printf
(
pan_vsb
,
"errno = %d (%s)
\n
"
,
err
,
strerror
(
err
));
q
=
THR_GetName
();
if
(
q
!=
NULL
)
VSB_printf
(
pan_vsb
,
"thread = (%s)
\n
"
,
q
);
VSB_printf
(
pan_vsb
,
"version = %s, vrt api = %u.%u
\n
"
,
VSB_printf
(
pan_vsb
,
"version = %s, vrt api = %u.%u
\n
"
,
VCS_version
,
VRT_MAJOR_VERSION
,
VRT_MINOR_VERSION
);
VCS_version
,
VRT_MAJOR_VERSION
,
VRT_MINOR_VERSION
);
VSB_printf
(
pan_vsb
,
"ident = %s,%s
\n
"
,
VSB_printf
(
pan_vsb
,
"ident = %s,%s
\n
"
,
...
@@ -637,6 +630,13 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
...
@@ -637,6 +630,13 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
pan_backtrace
(
pan_vsb
);
pan_backtrace
(
pan_vsb
);
if
(
err
)
VSB_printf
(
pan_vsb
,
"errno = %d (%s)
\n
"
,
err
,
strerror
(
err
));
q
=
THR_GetName
();
if
(
q
!=
NULL
)
VSB_printf
(
pan_vsb
,
"thread = (%s)
\n
"
,
q
);
if
(
!
FEATURE
(
FEATURE_SHORT_PANIC
))
{
if
(
!
FEATURE
(
FEATURE_SHORT_PANIC
))
{
req
=
THR_GetRequest
();
req
=
THR_GetRequest
();
VSB_cat
(
pan_vsb
,
"thr."
);
VSB_cat
(
pan_vsb
,
"thr."
);
...
...
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