X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/d23763dae4f649cc29a923298e0232ffdf608744..98ff9295493ed2b990f30768e11b18b6bc65eaa4:/test/tvec-core.c diff --git a/test/tvec-core.c b/test/tvec-core.c index 6b54f0a..7a65c51 100644 --- a/test/tvec-core.c +++ b/test/tvec-core.c @@ -58,7 +58,7 @@ const char *tvec_strlevel(unsigned level) { switch (level) { #define CASE(tag, name, val) \ - case TVLEV_##tag: return (name); + case TVLV_##tag: return (name); TVEC_LEVELS(CASE) #undef CASE default: return ("??"); @@ -74,7 +74,7 @@ const char *tvec_strlevel(unsigned level) * 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, ...) @@ -88,7 +88,7 @@ void tvec_report_v(struct tvec_state *tv, unsigned level, 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@ --- * @@ -116,7 +116,7 @@ int tvec_error(struct tvec_state *tv, const char *msg, ...) { 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); } @@ -124,14 +124,14 @@ void tvec_notice(struct tvec_state *tv, const char *msg, ...) { 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@ --- *