mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
dns_message_logfmtpacket(): drop 'style' parameter
Both existing callers of the dns_message_logfmtpacket() function set the argument passed as 'style' to &dns_master_style_comment. To simplify these call sites, drop the 'style' parameter from the prototype for dns_message_logfmtpacket() and use a fixed value of &dns_master_style_comment in the function's body instead.
This commit is contained in:
@@ -1404,8 +1404,7 @@ void
|
||||
dns_message_logfmtpacket(dns_message_t *message, const char *description,
|
||||
const isc_sockaddr_t *address,
|
||||
isc_logcategory_t category, isc_logmodule_t module,
|
||||
const dns_master_style_t *style, int level,
|
||||
isc_mem_t *mctx);
|
||||
int level, isc_mem_t *mctx);
|
||||
/*%<
|
||||
* Log 'message' at the specified logging parameters.
|
||||
*
|
||||
@@ -1422,7 +1421,6 @@ dns_message_logfmtpacket(dns_message_t *message, const char *description,
|
||||
* \li address to be non NULL.
|
||||
* \li category to be valid.
|
||||
* \li module to be valid.
|
||||
* \li style to be valid.
|
||||
* \li mctx to be a valid.
|
||||
*/
|
||||
|
||||
|
@@ -4741,12 +4741,11 @@ void
|
||||
dns_message_logfmtpacket(dns_message_t *message, const char *description,
|
||||
const isc_sockaddr_t *address,
|
||||
isc_logcategory_t category, isc_logmodule_t module,
|
||||
const dns_master_style_t *style, int level,
|
||||
isc_mem_t *mctx) {
|
||||
int level, isc_mem_t *mctx) {
|
||||
REQUIRE(address != NULL);
|
||||
|
||||
logfmtpacket(message, description, address, category, module, style,
|
||||
level, mctx);
|
||||
logfmtpacket(message, description, address, category, module,
|
||||
&dns_master_style_comment, level, mctx);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -2712,7 +2712,7 @@ resquery_send(resquery_t *query) {
|
||||
dns_message_logfmtpacket(
|
||||
fctx->qmessage, "sending packet to", &query->addrinfo->sockaddr,
|
||||
DNS_LOGCATEGORY_RESOLVER, DNS_LOGMODULE_PACKETS,
|
||||
&dns_master_style_comment, ISC_LOG_DEBUG(11), fctx->mctx);
|
||||
ISC_LOG_DEBUG(11), fctx->mctx);
|
||||
|
||||
/*
|
||||
* We're now done with the query message.
|
||||
@@ -9732,8 +9732,7 @@ rctx_logpacket(respctx_t *rctx) {
|
||||
dns_message_logfmtpacket(
|
||||
rctx->query->rmessage, "received packet from",
|
||||
&rctx->query->addrinfo->sockaddr, DNS_LOGCATEGORY_RESOLVER,
|
||||
DNS_LOGMODULE_PACKETS, &dns_master_style_comment,
|
||||
ISC_LOG_DEBUG(10), fctx->mctx);
|
||||
DNS_LOGMODULE_PACKETS, ISC_LOG_DEBUG(10), fctx->mctx);
|
||||
|
||||
#ifdef HAVE_DNSTAP
|
||||
/*
|
||||
|
Reference in New Issue
Block a user