Minor, slight improvement in debug output

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-11-24 09:03:07 +01:00
parent d297a23e5a
commit ac9749a240

View File

@ -1579,7 +1579,7 @@ void fprintlog_write(struct filed *f, struct iovec *iov, int iovcnt, int flags)
msg.msg_iovlen = iovcnt; msg.msg_iovlen = iovcnt;
for (int i = 0; i < iovcnt; i++) { for (int i = 0; i < iovcnt; i++) {
logit("iov[%d] => %s\n", i, (char *)iov[i].iov_base); // logit("iov[%d] => %s\n", i, (char *)iov[i].iov_base);
len += iov[i].iov_len; len += iov[i].iov_len;
} }
@ -1838,7 +1838,7 @@ static void fprintlog_first(struct filed *f, struct buf_msg *buffer)
else else
iovcnt = fmt3164(buffer, BSDFMT_DATEFMT, iov, NELEMS(iov)); iovcnt = fmt3164(buffer, BSDFMT_DATEFMT, iov, NELEMS(iov));
logit("logging to %s", TypeNames[f->f_type]); logit(" logging to %s", TypeNames[f->f_type]);
fprintlog_write(f, iov, iovcnt, buffer->flags); fprintlog_write(f, iov, iovcnt, buffer->flags);
} }