Skip to content

Commit 678a63f

Browse files
mchehabgregkh
authored andcommitted
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 <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/0ddebd8677605d789d53433c8a5344c68da82a73.1604042072.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 55e5414 commit 678a63f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Documentation/sphinx/kernellog.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@ def verbose(app, message):
2525
else:
2626
app.verbose(message)
2727

28-
28+
def info(app, message):
29+
if UseLogging:
30+
logger.info(message)
31+
else:
32+
app.info(message)

0 commit comments

Comments
 (0)