Add a new informational error level for messages

This commit is contained in:
Andrea Mazzoleni 2026-07-29 16:42:56 +02:00
parent b7dcf8659e
commit af0b3c8451
4 changed files with 51 additions and 13 deletions

View file

@ -105,6 +105,15 @@ void log_fatal(int err, const char* format, ...) __attribute__((format(attribute
*/
void log_error(int err, const char* format, ...) __attribute__((format(attribute_printf, 2, 3)));
/**
* Informational messages.
*
* Messages reporting general status information or warnings that do not indicate failure.
*
* These messages go in the log file if specified, otherwise they go in stderr.
*/
void log_info(int err, const char* format, ...) __attribute__((format(attribute_printf, 2, 3)));
/**
* Expected error messages, without fallback to stderr.
*