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; }
static void cli_log(unsigned int lvl, const char *fmt, va_list parms) { if (!pr_quelled(lvl)) vprintf(fmt, parms); }