if(log_level >= crm_log_level) {
if(log_level <= crm_log_level) {
do_crm_log(int log_level, const char *function, const char *fmt, ...){	gboolean do_log = FALSE;	switch(log_level) {		case LOG_NOTICE:		case LOG_WARNING:		case LOG_ERR:			do_log = TRUE;			break;		default:			if(log_level >= crm_log_level) {				do_log = TRUE;				if(log_level != LOG_INFO) {					log_level = LOG_DEBUG;				}			}			break;	}	if(do_log) {			va_list ap;			char	buf[MAXLINE];			int	nbytes;			buf[MAXLINE-1] = EOS;			va_start(ap, fmt);			nbytes=vsnprintf(buf, sizeof(buf)-1, fmt, ap);			va_end(ap);			if(function == NULL) {				cl_log(log_level, "%s", buf);			} else {				cl_log(log_level, "(%s) %s", function, buf);			}	}}