($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: ell@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH] log: add l_notice
Date: Tue, 13 Feb 2024 05:16:19 -0800	[thread overview]
Message-ID: <20240213131619.828613-1-prestwoj@gmail.com> (raw)

Adds the ability to use a notice (5) log level.
---
 ell/log.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ell/log.h b/ell/log.h
index 72dbed3..7ddf663 100644
--- a/ell/log.h
+++ b/ell/log.h
@@ -17,6 +17,7 @@ extern "C" {
 
 #define L_LOG_ERR	3
 #define L_LOG_WARNING	4
+#define L_LOG_NOTICE	5
 #define L_LOG_INFO	6
 #define L_LOG_DEBUG	7
 
@@ -84,6 +85,7 @@ void l_debug_disable(void);
 
 #define l_error(format, ...)  l_log(L_LOG_ERR, format, ##__VA_ARGS__)
 #define l_warn(format, ...)   l_log(L_LOG_WARNING, format, ##__VA_ARGS__)
+#define l_notice(format, ...) l_log(L_LOG_NOTICE, format, ##__VA_ARGS__)
 #define l_info(format, ...)   l_log(L_LOG_INFO, format, ##__VA_ARGS__)
 #define l_debug(format, ...)  L_DEBUG_SYMBOL(__debug_desc, format, ##__VA_ARGS__)
 
-- 
2.34.1


             reply	other threads:[~2024-02-13 13:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-13 13:16 James Prestwood [this message]
2024-02-13 14:05 ` [PATCH] log: add l_notice Marcel Holtmann
2024-02-14 16:18   ` Denis Kenzior
2024-02-14 16:27     ` Marcel Holtmann
2024-02-14 16:40       ` Denis Kenzior
2024-02-14 16:54         ` Marcel Holtmann
2024-02-14 16:57           ` Denis Kenzior
2024-02-14 18:28             ` James Prestwood
2024-02-14 18:51               ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240213131619.828613-1-prestwoj@gmail.com \
    --to=prestwoj@gmail.com \
    --cc=ell@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).