Commit a35344d8 authored by Evan Hunt's avatar Evan Hunt
Browse files

use log callback, not fprintf in dlz_example.c

parent 53402b52
......@@ -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);
"dlz_example: findzonedb connection from: %s\n", addrbuf);
"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);
"dlz_example: lookup connection from: %s\n", buf);
found = ISC_TRUE;
result = state->putrr(lookup, "TXT", 0, buf);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment