doc: Cope with Sphinx logging deprecations
authorJonathan Corbet <corbet@lwn.net>
Sun, 14 Jul 2019 08:35:45 +0000 (10:35 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 24 Jul 2019 18:15:35 +0000 (14:15 -0400)
commit61779ce0a1f0ad020e28d2154d8fe3ddbec05ce6
treebe5b3da09d5926a1d85967681d047431c13d2762
parentedd31084f2560008b7aed6c9654b014a90ebd33e
doc: Cope with Sphinx logging deprecations

Recent versions of sphinx will emit messages like:

  doc/sphinx/kerneldoc.py:103:
     RemovedInSphinx20Warning: app.warning() is now deprecated.
     Use sphinx.util.logging instead.

Switch to sphinx.util.logging to make this unsightly message go away.
Alas, that interface was only added in version 1.6, so we have to add a
version check to keep things working with older sphinxes.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Rebased for U-Boot
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
doc/sphinx/kerneldoc.py
doc/sphinx/kernellog.py [new file with mode: 0644]
doc/sphinx/kfigure.py