Don't skip the <PRI> field in the call to wallmsg()

This is redundant and causes message truncation.  The <PRI> field is
skipped within wallmsg() itself.

Signed-off-by: Edward K. McGuire <metaed@gmail.com>
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Edward K. McGuire 2022-05-13 15:14:09 -05:00 committed by Joachim Wiberg
parent 5b48dac64e
commit 4f24bce339

View File

@ -1857,7 +1857,7 @@ void fprintlog_write(struct filed *f, struct iovec *iov, int iovcnt, int flags)
f->f_time = timer_now();
logit("\n");
pushiov(iov, iovcnt, "\r\n");
wallmsg(f, &iov[1], iovcnt - 1);
wallmsg(f, &iov[0], iovcnt);
break;
} /* switch */