Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
43c1433e
Commit
43c1433e
authored
Feb 19, 2014
by
Mark Andrews
Browse files
add attributes to fatal, warn and delve_log
parent
657f0f11
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/delve/delve.c
View file @
43c1433e
...
...
@@ -191,6 +191,10 @@ usage(void) {
exit
(
1
);
}
ISC_PLATFORM_NORETURN_PRE
static
void
fatal
(
const
char
*
format
,
...)
ISC_FORMAT_PRINTF
(
1
,
2
)
ISC_PLATFORM_NORETURN_POST
;
static
void
fatal
(
const
char
*
format
,
...)
{
va_list
args
;
...
...
@@ -204,6 +208,9 @@ fatal(const char *format, ...) {
exit
(
1
);
}
static
void
warn
(
const
char
*
format
,
...)
ISC_FORMAT_PRINTF
(
1
,
2
);
static
void
warn
(
const
char
*
format
,
...)
{
va_list
args
;
...
...
@@ -228,6 +235,9 @@ static isc_logmodule_t modules[] = {
{
NULL
,
0
}
};
static
void
delve_log
(
int
level
,
const
char
*
fmt
,
...)
ISC_FORMAT_PRINTF
(
2
,
3
);
static
void
delve_log
(
int
level
,
const
char
*
fmt
,
...)
{
va_list
ap
;
...
...
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