/*
* Routines to report various classes of problems. Each report is decorated
* with the current context (file name and line number), if available.
*
* tcpd_warn() reports a problem and proceeds.
*
* tcpd_jump() reports a problem and jumps.
*
* Author: Wietse Venema, Eindhoven University of Technology, The Netherlands.
*/
/* construct the tag for the log entry */
if (tcpd_context.file)
syslog(severity, "%s: %s, line %d: %s",
tag, tcpd_context.file, tcpd_context.line, buf);
else
syslog(severity, "%s: %s", tag, buf);
if (buf != fmt)
free(buf);
}
/* tcpd_warn - report problem of some sort and proceed */