From ace9429bb58fd418f0c81d4c2835699bddf6bde6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:27:49 +0200 Subject: Adding upstream version 6.6.15. Signed-off-by: Daniel Baumann --- Documentation/sphinx/kernellog.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/sphinx/kernellog.py (limited to 'Documentation/sphinx/kernellog.py') diff --git a/Documentation/sphinx/kernellog.py b/Documentation/sphinx/kernellog.py new file mode 100644 index 0000000000..0bc00c138c --- /dev/null +++ b/Documentation/sphinx/kernellog.py @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Sphinx has deprecated its older logging interface, but the replacement +# only goes back to 1.6. So here's a wrapper layer to keep around for +# as long as we support 1.4. +# +# We don't support 1.4 anymore, but we'll keep the wrappers around until +# we change all the code to not use them anymore :) +# +import sphinx +from sphinx.util import logging + +logger = logging.getLogger('kerneldoc') + +def warn(app, message): + logger.warning(message) + +def verbose(app, message): + logger.verbose(message) + +def info(app, message): + logger.info(message) -- cgit v1.2.3