isc_logmodule_t module, const dns_master_style_t *style, int level,
isc_mem_t *mctx) {
char addrbuf[ISC_SOCKADDR_FORMATSIZE] = { 0 };
- const char *newline = "\n";
- const char *space = " ";
isc_buffer_t buffer;
char *buf = NULL;
int len = 1024;
if (address != NULL) {
isc_sockaddr_format(address, addrbuf, sizeof(addrbuf));
- } else {
- newline = space = "";
}
do {
isc_mem_put(mctx, buf, len);
len += 1024;
} else if (result == ISC_R_SUCCESS) {
- isc_log_write(category, module, level, "%s%s%s%s%.*s",
- description, space, addrbuf, newline,
+ isc_log_write(category, module, level, "%s %s\n%.*s",
+ description, addrbuf,
(int)isc_buffer_usedlength(&buffer), buf);
}
} while (result == ISC_R_NOSPACE);