1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # Sphinx has deprecated its older logging inte 3 # Sphinx has deprecated its older logging interface, but the replacement 4 # only goes back to 1.6. So here's a wrapper 4 # only goes back to 1.6. So here's a wrapper layer to keep around for 5 # as long as we support 1.4. 5 # as long as we support 1.4. 6 # 6 # 7 # We don't support 1.4 anymore, but we'll keep 7 # We don't support 1.4 anymore, but we'll keep the wrappers around until 8 # we change all the code to not use them anymo 8 # we change all the code to not use them anymore :) 9 # 9 # 10 import sphinx 10 import sphinx 11 from sphinx.util import logging 11 from sphinx.util import logging 12 12 13 logger = logging.getLogger('kerneldoc') 13 logger = logging.getLogger('kerneldoc') 14 14 15 def warn(app, message): 15 def warn(app, message): 16 logger.warning(message) 16 logger.warning(message) 17 17 18 def verbose(app, message): 18 def verbose(app, message): 19 logger.verbose(message) 19 logger.verbose(message) 20 20 21 def info(app, message): 21 def info(app, message): 22 logger.info(message) 22 logger.info(message)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.