[RFC v2 11/14] log: add a per line log helper
Stephen Hemminger
stephen at networkplumber.org
Fri Dec 8 18:15:51 CET 2023
On Fri, 8 Dec 2023 15:59:45 +0100
David Marchand <david.marchand at redhat.com> wrote:
> gcc builtin __builtin_strchr can be used as a static assertion to check
> whether passed format strings contain a \n.
> This can be useful to detect double \n in log messages.
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
Good idea.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list