// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-FileCopyrightText: 2020 Alyssa Ross #include enum verbosity { nothing, errors, all, }; extern enum verbosity verbosity; // Log an error message, followed by strerrno(errno), then exit with // status eval. void diee(int eval, const char *fmt, ...) __attribute__((noreturn)); // Log an error message. void elog(const char *fmt, ...); void velog(const char *fmt, va_list args); // Log an error message, followed by strerror(errno). void veloge(const char *fmt, va_list args); // Log an informative message. void ilog(const char *fmt, ...); void vilog(const char *fmt, va_list args);