示例#1
0
文件: log.c 项目: hallyn/libct
void print_on_level(unsigned int loglevel, const char *format, ...)
{
    va_list params;
    int save_errno = errno;

    if (pr_quelled(loglevel))
        return;

    va_start(params, format);
    __print_on_level(loglevel, format, params);
    va_end(params);

    errno = save_errno;
}
示例#2
0
文件: main.c 项目: avagin/criu
static void cli_log(unsigned int lvl, const char *fmt, va_list parms)
{
	if (!pr_quelled(lvl))
		vprintf(fmt, parms);
}