lkml.org 
[lkml]   [2020]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 11/33] docs: kernellog.py: add support for info()
    Date
    From: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

    An extension may want to just inform about something. So, add
    support for it.

    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
    ---
    Documentation/sphinx/kernellog.py | 6 +++++-
    1 file changed, 5 insertions(+), 1 deletion(-)

    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)
    --
    2.26.2
    \
     
     \ /
      Last update: 2020-10-29 01:34    [W:3.104 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site