Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
50002cc1
Commit
50002cc1
authored
May 31, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Namespace cleanup: vas_fail -> VAS_Fail
parent
9192fc96
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
cache_panic.c
bin/varnishd/cache_panic.c
+1
-1
cache_vrt.c
bin/varnishd/cache_vrt.c
+1
-1
vtc_log.c
bin/varnishtest/vtc_log.c
+2
-2
vas.h
include/vas.h
+4
-4
assert.c
lib/libvarnish/assert.c
+2
-2
No files found.
bin/varnishd/cache_panic.c
View file @
50002cc1
...
...
@@ -364,7 +364,7 @@ void
PAN_Init
(
void
)
{
vas_f
ail
=
pan_ic
;
VAS_F
ail
=
pan_ic
;
vsp
=
&
vsps
;
AN
(
VSB_new
(
vsp
,
vsm_head
->
panicstr
,
sizeof
vsm_head
->
panicstr
,
VSB_FIXEDLEN
));
...
...
bin/varnishd/cache_vrt.c
View file @
50002cc1
...
...
@@ -386,7 +386,7 @@ VRT_panic(const struct sess *sp, const char *str, ...)
va_start
(
ap
,
str
);
b
=
VRT_String
(
sp
->
http
->
ws
,
"PANIC: "
,
str
,
ap
);
va_end
(
ap
);
vas_f
ail
(
"VCL"
,
""
,
0
,
b
,
0
,
2
);
VAS_F
ail
(
"VCL"
,
""
,
0
,
b
,
0
,
2
);
}
/*--------------------------------------------------------------------*/
...
...
bin/varnishtest/vtc_log.c
View file @
50002cc1
...
...
@@ -274,7 +274,7 @@ vtc_hexdump(struct vtclog *vl, unsigned lvl, const char *pfx, const unsigned cha
/**********************************************************************/
static
void
vtc_log_
vas_f
ail
(
const
char
*
func
,
const
char
*
file
,
int
line
,
vtc_log_
VAS_F
ail
(
const
char
*
func
,
const
char
*
file
,
int
line
,
const
char
*
cond
,
int
err
,
int
xxx
)
{
struct
vtclog
*
vl
;
...
...
@@ -293,4 +293,4 @@ vtc_log_vas_fail(const char *func, const char *file, int line,
}
}
vas_f
*
vas_fail
=
vtc_log_vas_f
ail
;
vas_f
*
VAS_Fail
=
vtc_log_VAS_F
ail
;
include/vas.h
View file @
50002cc1
...
...
@@ -42,7 +42,7 @@
typedef
void
vas_f
(
const
char
*
,
const
char
*
,
int
,
const
char
*
,
int
,
int
);
extern
vas_f
*
vas_f
ail
;
extern
vas_f
*
VAS_F
ail
;
#ifdef WITHOUT_ASSERTS
#define assert(e) ((void)(e))
...
...
@@ -50,14 +50,14 @@ extern vas_f *vas_fail;
#define assert(e) \
do { \
if (!(e)) \
vas_f
ail(__func__, __FILE__, __LINE__, #e, errno, 0); \
VAS_F
ail(__func__, __FILE__, __LINE__, #e, errno, 0); \
} while (0)
#endif
#define xxxassert(e) \
do { \
if (!(e)) \
vas_f
ail(__func__, __FILE__, __LINE__, #e, errno, 1); \
VAS_F
ail(__func__, __FILE__, __LINE__, #e, errno, 1); \
} while (0)
/* Assert zero return value */
...
...
@@ -68,7 +68,7 @@ do { \
#define diagnostic(foo) assert(foo)
#define WRONG(expl) \
do { \
vas_f
ail(__func__, __FILE__, __LINE__, expl, errno, 3); \
VAS_F
ail(__func__, __FILE__, __LINE__, expl, errno, 3); \
abort(); \
} while (0)
...
...
lib/libvarnish/assert.c
View file @
50002cc1
...
...
@@ -38,7 +38,7 @@
#include "libvarnish.h"
static
void
vas_f
ail_default
(
const
char
*
func
,
const
char
*
file
,
int
line
,
VAS_F
ail_default
(
const
char
*
func
,
const
char
*
file
,
int
line
,
const
char
*
cond
,
int
err
,
int
xxx
)
{
...
...
@@ -59,4 +59,4 @@ vas_fail_default(const char *func, const char *file, int line,
abort
();
}
vas_f
*
vas_fail
=
vas_f
ail_default
;
vas_f
*
VAS_Fail
=
VAS_F
ail_default
;
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