{
switch (level) {
#define CASE(tag, name, val) \
- case TVLEV_##tag: return (name);
+ case TVLV_##tag: return (name);
TVEC_LEVELS(CASE)
#undef CASE
default: return ("??");
* Returns: ---
*
* Use: Report an message with a given severity. Messages with level
- * @TVLEV_ERR@ or higher force a nonzero exit code.
+ * @TVLV_ERR@ or higher force a nonzero exit code.
*/
void tvec_report(struct tvec_state *tv, unsigned level, const char *msg, ...)
const char *msg, va_list *ap)
{
tv->output->ops->report(tv->output, level, msg, ap);
- if (level >= TVLEV_ERR) tv->f |= TVSF_ERROR;
+ if (level >= TVLV_ERR) tv->f |= TVSF_ERROR;
}
/* --- @tvec_error@, @tvec_notice@, @tvec_info@ --- *
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVLEV_ERR, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_ERR, msg, &ap); va_end(ap);
return (-1);
}
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVLEV_NOTE, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_NOTE, msg, &ap); va_end(ap);
}
void tvec_info(struct tvec_state *tv, const char *msg, ...)
{
va_list ap;
- va_start(ap, msg); tvec_report_v(tv, TVLEV_INFO, msg, &ap); va_end(ap);
+ va_start(ap, msg); tvec_report_v(tv, TVLV_INFO, msg, &ap); va_end(ap);
}
/* --- @tvec_outputext@ --- *