if(function == NULL) { cl_log(log_as, "[%d] %s", log_level, buf); 
if(alt_debugfile == NULL || nbytes < MAXLINE) { if(alt_debugfile) { cur_debugfile = cl_log_get_debugfile(); cl_log_set_debugfile(alt_debugfile); } if(function == NULL) { cl_log(log_as, "[%d] %s", log_level, buf); } else { cl_log(log_as, "(%s [%d]) %s", function, log_level, buf); } if(cur_debugfile) { cl_log_set_debugfile(cur_debugfile); } 
do_crm_log(int log_level, const char *function, const char *fmt, ...){	int log_as = log_level;	gboolean do_log = FALSE;	if(log_level < LOG_INFO) {		do_log = TRUE;	} else if(log_level <= crm_log_level) {		do_log = TRUE;		if(log_level != LOG_INFO) {			log_as = LOG_DEBUG;		}	}	if(do_log) {		va_list ap;		char	buf[MAXLINE];		int	nbytes;				memset(buf, EOS, sizeof(buf)-1);		/*			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_as, "[%d] %s", log_level, buf);		} else {			cl_log(log_as, "(%s [%d]) %s", function,log_level,buf);		}	}}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/b543d3d41d826cb910fc3ec096e118617272ce85/utils.c/clean/crm/common/utils.c