Skip to content
GitLab
Projects
Groups
Snippets
/
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
a35344d8
Commit
a35344d8
authored
Dec 18, 2012
by
Evan Hunt
Browse files
use log callback, not fprintf in dlz_example.c
parent
53402b52
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/dlz/example/dlz_example.c
View file @
a35344d8
...
...
@@ -322,7 +322,8 @@ dlz_findzonedb(void *dbdata, const char *name,
methods
->
sourceip
(
clientinfo
,
&
src
);
fmt_address
(
src
,
addrbuf
,
sizeof
(
addrbuf
));
}
fprintf
(
stderr
,
"findzonedb: connection from: %s
\n
"
,
addrbuf
);
state
->
log
(
ISC_LOG_INFO
,
"dlz_example: findzonedb connection from: %s
\n
"
,
addrbuf
);
state
->
log
(
ISC_LOG_INFO
,
"dlz_example: dlz_findzonedb called with name '%s' "
...
...
@@ -394,7 +395,8 @@ dlz_lookup(const char *zone, const char *name, void *dbdata,
fmt_address
(
src
,
buf
,
sizeof
(
buf
));
}
fprintf
(
stderr
,
"lookup: connection from: %s
\n
"
,
buf
);
state
->
log
(
ISC_LOG_INFO
,
"dlz_example: lookup connection from: %s
\n
"
,
buf
);
found
=
ISC_TRUE
;
result
=
state
->
putrr
(
lookup
,
"TXT"
,
0
,
buf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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