commit - 03747a6c5101855b4d9db42f27e696f26ba2484d
commit + ef352ec3b87210945429d033625bbfb06de4d7c4
blob - 6f73c8f17820dc4ae018ef27bb33c1e3efd8a97a
blob + 404d43f53302e7aab2d10862e4e651e057207790
--- log.c
+++ log.c
va_start(ap, fmt);
if ((r = vasprintf(&fmted, fmt, ap)) != -1) {
- send_log(LOG_CRIT, IMSG_LOG, fmted, r+1);
+ send_log(IMSG_LOG, LOG_CRIT, fmted, r+1);
free(fmted);
/* wait for the logger process to shut down */
if (ec < 0)
fatal("asprintf: %s", strerror(errno));
- send_log(priority, IMSG_LOG, s, ec+1);
+ send_log(IMSG_LOG, priority, s, ec+1);
free(fmted);
free(s);
(int)(t-meta), meta);
if (ec < 0)
err(1, "asprintf");
- send_log(LOG_NOTICE, IMSG_LOG_REQUEST, fmted, ec+1);
+ send_log(IMSG_LOG_REQUEST, LOG_NOTICE, fmted, ec+1);
free(fmted);
}