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
b9459df1
Commit
b9459df1
authored
Oct 16, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report errno on asserts
parent
ee916f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
vtc_log.c
bin/varnishtest/vtc_log.c
+6
-3
No files found.
bin/varnishtest/vtc_log.c
View file @
b9459df1
...
...
@@ -28,6 +28,7 @@
#include "config.h"
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
...
...
@@ -273,17 +274,19 @@ vtc_log_VAS_Fail(const char *func, const char *file, int line,
const
char
*
cond
,
enum
vas_e
why
)
{
struct
vtclog
*
vl
;
int
e
=
errno
;
(
void
)
why
;
vl
=
pthread_getspecific
(
log_key
);
if
(
vl
==
NULL
||
vl
->
act
)
{
fprintf
(
stderr
,
"Assert error in %s(), %s line %d:
\n
"
" Condition(%s) not true.
\n
"
,
func
,
file
,
line
,
cond
);
" Condition(%s) not true.
(errno=%d %s)
\n
"
,
func
,
file
,
line
,
cond
,
e
,
strerror
(
e
)
);
}
else
vtc_fatal
(
vl
,
"Assert error in %s(), %s line %d:"
" Condition(%s) not true.
\n
"
,
func
,
file
,
line
,
cond
);
" Condition(%s) not true."
" Errno=%d %s"
,
func
,
file
,
line
,
cond
,
e
,
strerror
(
e
));
abort
();
}
...
...
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