]> git.ipfire.org Git - people/ms/network.git/commitdiff
logging: Add WARNING log level
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Jun 2023 11:22:46 +0000 (11:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 Jun 2023 11:22:46 +0000 (11:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/networkd/logging.h

index ea75ba020f835badd50bc81e0b7efe261511afd7..e835064d216b605451e5079ae076efd7ff1bb8a5 100644 (file)
@@ -30,6 +30,7 @@ void nw_log(int priority, const char *file, int line, const char* fn,
        This is just something simple which will work for now...
 */
 #define INFO(args...)  nw_log(LOG_INFO, __FILE__, __LINE__, __FUNCTION__, ## args)
+#define WARNING(args...)  nw_log(LOG_WARNING, __FILE__, __LINE__, __FUNCTION__, ## args)
 #define ERROR(args...) nw_log(LOG_ERR, __FILE__, __LINE__, __FUNCTION__, ## args)
 #define DEBUG(args...) nw_log(LOG_DEBUG, __FILE__, __LINE__, __FUNCTION__, ## args)