From: Michael Tremer Date: Sat, 26 Oct 2024 10:47:43 +0000 (+0000) Subject: logging: Create new warning log level X-Git-Tag: 0.9.30~860 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=344a59e69e5a741956f75b8000c305639da0b345;p=pakfire.git logging: Create new warning log level Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/include/pakfire/logging.h b/src/libpakfire/include/pakfire/logging.h index 79f6254aa..8ff9f8053 100644 --- a/src/libpakfire/include/pakfire/logging.h +++ b/src/libpakfire/include/pakfire/logging.h @@ -51,6 +51,7 @@ static inline void __attribute__((always_inline, format(printf, 2, 3))) pakfire_ctx_log_null(struct pakfire_ctx* ctx, const char *format, ...) {} #define INFO(ctx, arg...) pakfire_ctx_log_condition(ctx, LOG_INFO, ## arg) +#define WARN(ctx, arg...) pakfire_ctx_log_condition(ctx, LOG_WARNING, ## arg) #define ERROR(ctx, arg...) pakfire_ctx_log_condition(ctx, LOG_ERR, ## arg) #ifdef ENABLE_DEBUG