From: Mauro Carvalho Chehab Date: Fri, 30 Oct 2020 07:40:30 +0000 (+0100) Subject: docs: kernellog.py: add support for info() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=678a63f9888c28150e08cf6cb5fec9fbaf2bf81c;p=users%2Fhch%2Fblock.git docs: kernellog.py: add support for info() An extension may want to just inform about something. So, add support for it. Acked-by: Jonathan Corbet Signed-off-by: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/0ddebd8677605d789d53433c8a5344c68da82a73.1604042072.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/Documentation/sphinx/kernellog.py b/Documentation/sphinx/kernellog.py index af924f51a7dc..8ac7d274f542 100644 --- a/Documentation/sphinx/kernellog.py +++ b/Documentation/sphinx/kernellog.py @@ -25,4 +25,8 @@ def verbose(app, message): else: app.verbose(message) - +def info(app, message): + if UseLogging: + logger.info(message) + else: + app.info(message)