if (level > LP_MAX)
if (level >= LP_MAX)
cvs_vlog(u_int level, const char *fmt, va_list vap){	int ecp;	char prefix[64], buf[1024], ebuf[32];	FILE *out;	if (level > LP_MAX)		return (-1);	/* apply any filters */	if (CVS_LOG_FLTRGET(level))		return (0);	if (level == LP_ERRNO)		ecp = errno;	else		ecp = 0;#ifdef CVS	/* The cvs program appends the command name to the program name */	if (level == LP_TRACE) {		strlcpy(prefix, " -> ", sizeof(prefix));		if (cvs_cmdop == CVS_OP_SERVER)			prefix[0] = 'S';	} else if (cvs_command != NULL) {		if (level == LP_ABORT)			snprintf(prefix, sizeof(prefix), "%s [%s aborted]",			    __progname, cvs_command);		else			snprintf(prefix, sizeof(prefix), "%s %s", __progname,			    cvs_command);	} else /* just use the standard strlcpy */#endif		strlcpy(prefix, __progname, sizeof(prefix));	if ((cvs_log_flags & LF_PID) && (level != LP_TRACE)) {		snprintf(buf, sizeof(buf), "[%d]", (int)getpid());		strlcat(prefix, buf, sizeof(prefix));	}	vsnprintf(buf, sizeof(buf), fmt, vap);	if (level == LP_ERRNO) {		snprintf(ebuf, sizeof(ebuf), ": %s", strerror(errno));		strlcat(buf, ebuf, sizeof(buf));	}	if (cvs_log_dest & LD_STD) {		if (level <= LP_NOTICE)			out = stdout;		else			out = stderr;#ifdef CVS		if (cvs_cmdop == CVS_OP_SERVER) {			if (out == stdout)				putc('M', out);			else {				out = stdout;				putc('E', out);			}			putc(' ', out);		}#endif		fputs(prefix, out);		if (level != LP_TRACE)			fputs(": ", out);		fputs(buf, out);		fputc('\n', out);	}	if (cvs_log_dest & LD_SYSLOG)		syslog_r(cvs_slpriomap[level], &cvs_sl, "%s", buf);	/* preserve it just in case we changed it? */	if (level == LP_ERRNO)		errno = ecp;	return (0);}