2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2009-06-17 18:28:50 +02:00
|
|
|
* include/debug.h
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2016-06-11 20:38:37 +02:00
|
|
|
* Copyright (C) 2007-2011, 2014, 2016 Gregory Nutt. All rights reserved.
|
2012-07-17 05:58:11 +02:00
|
|
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in
|
|
|
|
* the documentation and/or other materials provided with the
|
|
|
|
* distribution.
|
2008-01-09 02:13:24 +01:00
|
|
|
* 3. Neither the name NuttX nor the names of its contributors may be
|
2007-02-18 00:21:28 +01:00
|
|
|
* used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
|
|
|
|
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
|
|
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2009-06-17 18:28:50 +02:00
|
|
|
#ifndef __INCLUDE_DEBUG_H
|
|
|
|
#define __INCLUDE_DEBUG_H
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Included Files
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
#include <nuttx/config.h>
|
2008-01-09 02:13:24 +01:00
|
|
|
#include <nuttx/compiler.h>
|
2009-12-15 00:32:23 +01:00
|
|
|
|
2016-01-09 13:28:12 +01:00
|
|
|
#ifdef CONFIG_ARCH_DEBUG_H
|
|
|
|
# include <arch/debug.h>
|
|
|
|
#endif
|
|
|
|
|
2013-01-28 22:55:16 +01:00
|
|
|
#include <syslog.h>
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2009-12-15 00:32:23 +01:00
|
|
|
* Pre-processor Definitions
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2009-09-15 17:44:14 +02:00
|
|
|
/* Debug macros to runtime filter the debug messages sent to the console. In
|
|
|
|
* general, there are four forms of the debug macros:
|
|
|
|
*
|
2016-06-11 20:38:37 +02:00
|
|
|
* [a-z]info() -- Outputs messages to the console similar to printf() except
|
|
|
|
* that the output is not buffered. Output is only generated if
|
|
|
|
* CONFIG_DEBUG_INFO is defined. The info macros are intended for
|
|
|
|
* verbose "informational" debug output. If you enable CONFIG_DEBUG_INFO,
|
|
|
|
* then very chatty (and often annoying) output will be generated.
|
|
|
|
*
|
|
|
|
* The first character of the macro name indicates the system system
|
|
|
|
* (e.g., n=network, f=filesystm, etc.). If the first character is
|
|
|
|
* missing (i.e., info()), then it is common. The common info() macro
|
|
|
|
* is enabled simply with CONFIG_DEBUG_INFO. Subsystem debug requires an
|
2009-09-15 17:44:14 +02:00
|
|
|
* additional configuration setting to enable it (e.g., CONFIG_DEBUG_NET
|
2014-07-03 15:58:43 +02:00
|
|
|
* for the network, CONFIG_DEBUG_FS for the file system, etc).
|
2009-09-15 17:44:14 +02:00
|
|
|
*
|
2016-06-11 23:50:49 +02:00
|
|
|
* In general, error messages and output of importance use [a-z]err().
|
|
|
|
* [a-z]err() is implementation dependent but usually uses file descriptors.
|
2009-09-15 17:44:14 +02:00
|
|
|
* (that is a problem only because the interrupt task may have re-
|
2016-06-11 23:50:49 +02:00
|
|
|
* directed stdout). Therefore [a-z]err() should not be used in interrupt
|
2009-09-15 17:44:14 +02:00
|
|
|
* handlers.
|
|
|
|
*
|
2016-06-11 20:38:37 +02:00
|
|
|
* [a-z]warn() -- Identical to [a-z]info() except that it also requires that
|
|
|
|
* CONFIG_DEBUG_WARN be defined. This is intended for important exception
|
|
|
|
* conditions that are potential errors (or perhaps real errors with non-
|
|
|
|
* fatal consequences).
|
|
|
|
*
|
2016-06-11 23:50:49 +02:00
|
|
|
* [a-z]err() -- Identical to [a-z]info() except that it also requires that
|
|
|
|
* CONFIG_DEBUG_ERROR be defined. This is intended for important error-related
|
2016-06-11 20:38:37 +02:00
|
|
|
* information that you probably not want to suppress during normal debug
|
|
|
|
* general debugging.
|
2009-09-15 17:44:14 +02:00
|
|
|
*
|
2016-06-11 23:50:49 +02:00
|
|
|
* [a-z]llinfo() -- Identical to [a-z]err() except this is uses special
|
2009-09-15 17:44:14 +02:00
|
|
|
* interfaces provided by architecture-specific logic to talk directly
|
|
|
|
* to the underlying console hardware. If the architecture provides such
|
|
|
|
* logic, it should define CONFIG_ARCH_LOWPUTC.
|
|
|
|
*
|
2016-06-11 20:38:37 +02:00
|
|
|
* [a-z]llinfo() should not be used in normal code because the implementation
|
2009-09-15 17:44:14 +02:00
|
|
|
* probably disables interrupts and does things that are not consistent with
|
2016-06-11 20:38:37 +02:00
|
|
|
* good real-time performance. However, [a-z]llinfo() is particularly useful
|
2009-09-15 17:44:14 +02:00
|
|
|
* in low-level code where it is inappropriate to use file descriptors. For
|
2016-06-11 20:38:37 +02:00
|
|
|
* example, only [a-z]llinfo() should be used in interrupt handlers.
|
|
|
|
*
|
|
|
|
* [a-z]llwarn() -- Identical to [a-z]llinfo() except that it also requires that
|
|
|
|
* CONFIG_DEBUG_WARN be defined. This is intended for important exception
|
|
|
|
* conditions that are potential errors (or perhaps real errors with non-
|
|
|
|
* fatal consequences).
|
2009-09-15 17:44:14 +02:00
|
|
|
*
|
2016-06-11 22:55:27 +02:00
|
|
|
* [a-z]llerr() -- Identical to [a-z]llinfo() except that it also requires that
|
2016-06-11 23:50:49 +02:00
|
|
|
* CONFIG_DEBUG_ERROR be defined. This is intended for important error-related
|
2016-06-11 20:38:37 +02:00
|
|
|
* information that you probably not want to suppress during normal debug
|
|
|
|
* general debugging.
|
2016-06-14 17:07:53 +02:00
|
|
|
*
|
|
|
|
* alert() - is a special, high-priority, unconditional version that is really
|
|
|
|
* intended only for crash error reporting.
|
2009-09-15 17:44:14 +02:00
|
|
|
*/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
#ifdef CONFIG_HAVE_FUNCTIONNAME
|
2016-06-11 20:38:37 +02:00
|
|
|
# define EXTRA_FMT "%s: "
|
|
|
|
# define EXTRA_ARG ,__FUNCTION__
|
2007-02-20 23:39:56 +01:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define EXTRA_FMT
|
|
|
|
# define EXTRA_ARG
|
2007-02-20 23:39:56 +01:00
|
|
|
#endif
|
|
|
|
|
2016-01-09 14:27:22 +01:00
|
|
|
/* The actual logger function may be overridden in arch/debug.h if needed. */
|
2016-01-09 13:28:12 +01:00
|
|
|
|
|
|
|
#ifndef __arch_syslog
|
2016-06-11 20:38:37 +02:00
|
|
|
# define __arch_syslog syslog
|
2016-01-09 13:28:12 +01:00
|
|
|
#endif
|
|
|
|
#ifndef __arch_lowsyslog
|
2016-06-11 20:38:37 +02:00
|
|
|
# define __arch_lowsyslog lowsyslog
|
2016-01-09 13:28:12 +01:00
|
|
|
#endif
|
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/* Debug macros will differ depending upon if the toolchain supports
|
|
|
|
* macros with a variable number of arguments or not.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPP_HAVE_VARARGS
|
|
|
|
|
2014-05-22 17:01:51 +02:00
|
|
|
/* C-99 style variadic macros are supported */
|
2008-01-09 02:13:24 +01:00
|
|
|
|
2016-06-14 17:07:53 +02:00
|
|
|
#ifdef CONFIG_ARCH_LOWPUTC
|
|
|
|
# define alert(format, ...) \
|
|
|
|
__arch_lowsyslog(LOG_EMERG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
|
|
|
# else
|
|
|
|
# define alert(x...)
|
|
|
|
# endif
|
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
|
|
|
# define err(format, ...) \
|
2016-06-11 20:38:37 +02:00
|
|
|
__arch_syslog(LOG_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-11 22:55:27 +02:00
|
|
|
# define llerr(format, ...) \
|
2016-01-09 13:28:12 +01:00
|
|
|
__arch_lowsyslog(LOG_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2007-02-18 00:21:28 +01:00
|
|
|
# else
|
2016-06-11 22:55:27 +02:00
|
|
|
# define llerr(x...)
|
2007-02-18 00:21:28 +01:00
|
|
|
# endif
|
2016-06-11 23:50:49 +02:00
|
|
|
#else /* CONFIG_DEBUG_ERROR */
|
|
|
|
# define err(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define llerr(x...)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
|
|
|
# define warn(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_syslog(LOG_WARNING, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-11 20:38:37 +02:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
|
|
|
# define llwarn(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_lowsyslog(LOG_WARNING, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-11 20:38:37 +02:00
|
|
|
# else
|
|
|
|
# define llwarn(x...)
|
|
|
|
# endif
|
|
|
|
#else /* CONFIG_DEBUG_INFO */
|
|
|
|
# define warn(x...)
|
|
|
|
# define llwarn(x...)
|
|
|
|
#endif /* CONFIG_DEBUG_INFO */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2016-06-11 20:38:37 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
2016-06-11 19:59:51 +02:00
|
|
|
# define info(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_syslog(LOG_INFO, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2008-10-27 17:37:48 +01:00
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-11 19:59:51 +02:00
|
|
|
# define llinfo(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_lowsyslog(LOG_INFO, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2009-06-25 19:44:35 +02:00
|
|
|
# else
|
2016-06-11 19:59:51 +02:00
|
|
|
# define llinfo(x...)
|
2009-06-25 19:44:35 +02:00
|
|
|
# endif
|
2016-06-11 20:38:37 +02:00
|
|
|
#else /* CONFIG_DEBUG_INFO */
|
2016-06-11 19:59:51 +02:00
|
|
|
# define info(x...)
|
|
|
|
# define llinfo(x...)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif /* CONFIG_DEBUG_INFO */
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2007-11-23 23:32:52 +01:00
|
|
|
/* Subsystem specific debug */
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_MM_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define mllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2007-11-23 23:32:52 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define mllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_WARN
|
|
|
|
# define mwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define mllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define mwarn(x...)
|
|
|
|
# define mllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_INFO
|
|
|
|
# define minfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define mllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define minfo(x...)
|
|
|
|
# define mllinfo(x...)
|
2007-11-23 23:32:52 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SCHED_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define sllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2007-11-23 23:32:52 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define sllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_WARN
|
|
|
|
# define swarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define sllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define swarn(x...)
|
|
|
|
# define sllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_INFO
|
|
|
|
# define sinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define sllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define sinfo(x...)
|
|
|
|
# define sllinfo(x...)
|
2007-11-23 23:32:52 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PAGING_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define pgllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
|
|
|
# define pgerr(x...)
|
|
|
|
# define pgllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_WARN
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pgwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define pgllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
|
|
|
# define pgwarn(x...)
|
|
|
|
# define pgllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_INFO
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pginfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define pgllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
2010-08-22 05:44:18 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define pgllerr(x...)
|
2010-08-22 05:44:18 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_NET_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define nllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2007-11-23 23:32:52 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define nllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_WARN
|
|
|
|
# define nwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define nllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define nwarn(x...)
|
|
|
|
# define nllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_INFO
|
|
|
|
# define ninfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define nllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ninfo(x...)
|
|
|
|
# define nllinfo(x...)
|
2007-11-23 23:32:52 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_FS_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define fllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2007-11-24 14:59:57 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define fllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_WARN
|
|
|
|
# define fwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define fllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define fwarn(x...)
|
|
|
|
# define fllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_INFO
|
|
|
|
# define finfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define fllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define finfo(x...)
|
|
|
|
# define fllinfo(x...)
|
2007-11-24 14:59:57 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define crypterr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define cryptllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2014-07-03 15:58:43 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define crypterr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define cryptllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_WARN
|
|
|
|
# define cryptwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define cryptllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptwarn(x...)
|
|
|
|
# define cryptllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_INFO
|
|
|
|
# define cryptinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define cryptllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptinfo(x...)
|
|
|
|
# define cryptllinfo(x...)
|
2014-07-03 15:58:43 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INPUT_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define illerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2011-07-29 20:51:56 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define illerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_WARN
|
|
|
|
# define iwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define illwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iwarn(x...)
|
|
|
|
# define illwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_INFO
|
|
|
|
# define iinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define illinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iinfo(x...)
|
|
|
|
# define illinfo(x...)
|
2011-07-29 20:51:56 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define aerr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define allerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2011-12-14 20:12:00 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define aerr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define allerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_WARN
|
|
|
|
# define awarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define allwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define awarn(x...)
|
|
|
|
# define allwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_INFO
|
|
|
|
# define ainfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define allinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ainfo(x...)
|
|
|
|
# define allinfo(x...)
|
2011-12-14 20:12:00 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 23:45:27 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CAN_ERROR
|
|
|
|
# define canerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define canllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define canerr(x...)
|
|
|
|
# define canllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_WARN
|
|
|
|
# define canwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define canllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define canwarn(x...)
|
|
|
|
# define canllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_INFO
|
|
|
|
# define caninfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define canllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define caninfo(x...)
|
|
|
|
# define canllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define gllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2008-11-25 01:09:14 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define gllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_WARN
|
|
|
|
# define gwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define gllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define gwarn(x...)
|
|
|
|
# define gllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_INFO
|
|
|
|
# define ginfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define gllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ginfo(x...)
|
|
|
|
# define gllinfo(x...)
|
2008-11-25 01:09:14 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define bllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2009-06-17 18:28:50 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define bllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_WARN
|
|
|
|
# define bwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define bllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define bwarn(x...)
|
|
|
|
# define bllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_INFO
|
|
|
|
# define binfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define bllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define binfo(x...)
|
|
|
|
# define bllinfo(x...)
|
2009-06-17 18:28:50 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LIB_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define lllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2007-11-24 14:59:57 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define lllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_WARN
|
|
|
|
# define lwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define lllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define lwarn(x...)
|
|
|
|
# define lllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_INFO
|
|
|
|
# define linfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define lllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define linfo(x...)
|
|
|
|
# define lllinfo(x...)
|
2007-11-24 14:59:57 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderr(format, ...) err(format, ##__VA_ARGS__)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define audllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2013-05-19 23:12:28 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderr(x...)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define audllerr(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_WARN
|
|
|
|
# define audwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define audllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audwarn(x...)
|
|
|
|
# define audllwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_INFO
|
|
|
|
# define audinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define audllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audinfo(x...)
|
|
|
|
# define audllinfo(x...)
|
2013-05-19 23:12:28 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 16:35:22 +02:00
|
|
|
#ifdef CONFIG_DEBUG_DMA_ERROR
|
|
|
|
# define dmaerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define dmallerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define dmaerr(x...)
|
|
|
|
# define dmallerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
|
|
|
# define dmawarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define dmallwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define dmawarn(x...)
|
|
|
|
# define dmallwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
|
|
|
# define dmainfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define dmallinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define dmainfo(x...)
|
|
|
|
# define dmallinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
2016-06-15 17:20:23 +02:00
|
|
|
# define irqerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define irqllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
2016-06-15 17:20:23 +02:00
|
|
|
# define irqerr(x...)
|
|
|
|
# define irqllerr(x...)
|
2016-06-15 16:35:22 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_WARN
|
|
|
|
# define irqwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define irqllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define irqwarn(x...)
|
|
|
|
# define irqllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
|
|
|
# define irqinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define irqllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define irqinfo(x...)
|
|
|
|
# define irqllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 19:40:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LCD_ERROR
|
|
|
|
# define lcderr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define lcdllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define lcderr(x...)
|
|
|
|
# define lcdllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
|
|
|
# define lcdwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define lcdllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define lcdwarn(x...)
|
|
|
|
# define lcdllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
|
|
|
# define lcdinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define lcdllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define lcdinfo(x...)
|
|
|
|
# define lcdllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 22:12:19 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LEDS_ERROR
|
|
|
|
# define lederr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define ledllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define lederr(x...)
|
|
|
|
# define ledllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
|
|
|
# define ledwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define ledllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define ledwarn(x...)
|
|
|
|
# define ledllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
|
|
|
# define ledinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define ledllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define ledinfo(x...)
|
|
|
|
# define ledllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GPIO_ERROR
|
|
|
|
# define gpioerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define gpiollerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define gpioerr(x...)
|
|
|
|
# define gpiollerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
|
|
|
# define gpiowarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define gpiollwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define gpiowarn(x...)
|
|
|
|
# define gpiollwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
|
|
|
# define gpioinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define gpiollinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define gpioinfo(x...)
|
|
|
|
# define gpiollinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:30:12 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2C_ERROR
|
|
|
|
# define i2cerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define i2cllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2cerr(x...)
|
|
|
|
# define i2cllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
|
|
|
# define i2cwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define i2cllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2cwarn(x...)
|
|
|
|
# define i2cllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
|
|
|
# define i2cinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define i2cllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2cinfo(x...)
|
|
|
|
# define i2cllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:54:01 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2S_ERROR
|
|
|
|
# define i2serr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define i2sllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2serr(x...)
|
|
|
|
# define i2sllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
|
|
|
# define i2swarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define i2sllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2swarn(x...)
|
|
|
|
# define i2sllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
|
|
|
# define i2sinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define i2sllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define i2sinfo(x...)
|
|
|
|
# define i2sllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 01:23:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PWM_ERROR
|
|
|
|
# define pwmerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define pwmllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define pwmerr(x...)
|
|
|
|
# define pwmllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
|
|
|
# define pwmwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define pwmllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define pwmwarn(x...)
|
|
|
|
# define pwmllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
|
|
|
# define pwminfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define pwmllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define pwminfo(x...)
|
|
|
|
# define pwmllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:41:13 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_ERROR
|
|
|
|
# define snerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define snllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define snerr(x...)
|
|
|
|
# define snllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
|
|
|
# define snwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define snllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define snwarn(x...)
|
|
|
|
# define snllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
|
|
|
# define sninfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define snllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define sninfo(x...)
|
|
|
|
# define snllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
|
|
|
# define spierr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define spillerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define spierr(x...)
|
|
|
|
# define spillerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
|
|
|
# define spiwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define spillwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define spiwarn(x...)
|
|
|
|
# define spillwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
|
|
|
# define spiinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define spillinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define spiinfo(x...)
|
|
|
|
# define spillinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 14:28:04 +02:00
|
|
|
#ifdef CONFIG_DEBUG_USB_ERROR
|
|
|
|
# define uerr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define ullerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define uerr(x...)
|
|
|
|
# define ullerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
|
|
|
# define uwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define ullwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define uwarn(x...)
|
|
|
|
# define ullwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
|
|
|
# define uinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define ullinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define uinfo(x...)
|
|
|
|
# define ullinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
|
|
|
# define wderr(format, ...) err(format, ##__VA_ARGS__)
|
|
|
|
# define wdllerr(format, ...) llerr(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define wderr(x...)
|
|
|
|
# define wdllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
|
|
|
# define wdwarn(format, ...) warn(format, ##__VA_ARGS__)
|
|
|
|
# define wdllwarn(format, ...) llwarn(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define wdwarn(x...)
|
|
|
|
# define wdllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
|
|
|
# define wdinfo(format, ...) info(format, ##__VA_ARGS__)
|
|
|
|
# define wdllinfo(format, ...) llinfo(format, ##__VA_ARGS__)
|
|
|
|
#else
|
|
|
|
# define wdinfo(x...)
|
|
|
|
# define wdllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
#else /* CONFIG_CPP_HAVE_VARARGS */
|
|
|
|
|
2014-05-22 17:01:51 +02:00
|
|
|
/* Variadic macros NOT supported */
|
2008-01-09 02:13:24 +01:00
|
|
|
|
2016-06-14 17:07:53 +02:00
|
|
|
#ifndef CONFIG_ARCH_LOWPUTC
|
|
|
|
# define alert (void)
|
|
|
|
# endif
|
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
2008-10-27 17:37:48 +01:00
|
|
|
# ifndef CONFIG_ARCH_LOWPUTC
|
2016-06-11 22:55:27 +02:00
|
|
|
# define llerr (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
# endif
|
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define err (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define llerr (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
|
|
|
# ifndef CONFIG_ARCH_LOWPUTC
|
|
|
|
# define llwarn (void)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# define warn (void)
|
|
|
|
# define llwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
|
|
|
# ifndef CONFIG_ARCH_LOWPUTC
|
|
|
|
# define llinfo (void)
|
2008-10-27 17:37:48 +01:00
|
|
|
# endif
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define info (void)
|
|
|
|
# define llinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Subsystem specific debug */
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_MM_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define mllerr llerr
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define mllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_WARN
|
|
|
|
# define mwarn warn
|
|
|
|
# define mllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define mwarn (void)
|
|
|
|
# define mllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_INFO
|
|
|
|
# define minfo info
|
|
|
|
# define mllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define minfo (void)
|
|
|
|
# define mllinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SCHED_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define sllerr llerr
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define sllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_WARN
|
|
|
|
# define swarn warn
|
|
|
|
# define sllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define swarn (void)
|
|
|
|
# define sllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_INFO
|
|
|
|
# define sinfo info
|
|
|
|
# define sllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define sinfo (void)
|
|
|
|
# define sllinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PAGING_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define pgllerr llerr
|
2010-08-22 05:44:18 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define pgllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_WARN
|
|
|
|
# define pgwarn warn
|
|
|
|
# define pgllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pgwarn (void)
|
|
|
|
# define pgllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_INFO
|
|
|
|
# define pginfo info
|
|
|
|
# define pgllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pginfo (void)
|
|
|
|
# define pgllinfo (void)
|
2010-08-22 05:44:18 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_NET_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define nllerr llerr
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define nllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_WARN
|
|
|
|
# define nwarn warn
|
|
|
|
# define nllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define nwarn (void)
|
|
|
|
# define nllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_INFO
|
|
|
|
# define ninfo info
|
|
|
|
# define nllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ninfo (void)
|
|
|
|
# define nllinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_FS_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define fllerr llerr
|
2014-07-03 15:58:43 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define fllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_WARN
|
|
|
|
# define fwarn warn
|
|
|
|
# define fllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define fwarn (void)
|
|
|
|
# define fllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_INFO
|
|
|
|
# define finfo info
|
|
|
|
# define fllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define finfo (void)
|
|
|
|
# define fllinfo (void)
|
2014-07-03 15:58:43 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define crypterr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define cryptllerr llerr
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define crypterr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define cryptllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_WARN
|
|
|
|
# define cryptwarn warn
|
|
|
|
# define cryptllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptwarn (void)
|
|
|
|
# define cryptllwarn (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_INFO
|
|
|
|
# define cryptinfo info
|
|
|
|
# define cryptllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define cryptinfo(x...)
|
|
|
|
# define cryptllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define illerr llerr
|
2011-07-29 20:51:56 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define illerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_WARN
|
|
|
|
# define iwarn warn
|
|
|
|
# define illwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iwarn (void)
|
|
|
|
# define illwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_INFO
|
|
|
|
# define iinfo info
|
|
|
|
# define illinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iinfo (void)
|
|
|
|
# define illinfo (void)
|
2011-07-29 20:51:56 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define aerr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define allerr llerr
|
2011-12-14 20:12:00 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define aerr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define allerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_WARN
|
|
|
|
# define awarn warn
|
|
|
|
# define allwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define awarn (void)
|
|
|
|
# define allwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_INFO
|
|
|
|
# define ainfo info
|
|
|
|
# define allinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ainfo (void)
|
|
|
|
# define allinfo (void)
|
2011-12-14 20:12:00 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 23:45:27 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CAN_ERROR
|
|
|
|
# define canerr err
|
|
|
|
# define canllerr llerr
|
|
|
|
#else
|
|
|
|
# define canerr (void)
|
|
|
|
# define canllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_WARN
|
|
|
|
# define canwarn warn
|
|
|
|
# define canllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define canwarn (void)
|
|
|
|
# define canllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_INFO
|
|
|
|
# define caninfo info
|
|
|
|
# define canllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define caninfo (void)
|
|
|
|
# define canllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define gllerr llerr
|
2008-11-25 01:09:14 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define gllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_WARN
|
|
|
|
# define gwarn warn
|
|
|
|
# define gllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define gwarn (void)
|
|
|
|
# define gllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_INFO
|
|
|
|
# define ginfo info
|
|
|
|
# define gllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ginfo (void)
|
|
|
|
# define gllinfo (void)
|
2008-11-25 01:09:14 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define bllerr llerr
|
2009-06-17 18:28:50 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define bllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_WARN
|
|
|
|
# define bwarn warn
|
|
|
|
# define bllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define bwarn (void)
|
|
|
|
# define bllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_INFO
|
|
|
|
# define binfo info
|
|
|
|
# define bllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define binfo (void)
|
|
|
|
# define bllinfo (void)
|
2009-06-17 18:28:50 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LIB_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define lllerr llerr
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define lllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_WARN
|
|
|
|
# define lwarn warn
|
|
|
|
# define lllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define lwarn (void)
|
|
|
|
# define lllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_INFO
|
|
|
|
# define linfo info
|
|
|
|
# define lllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define linfo (void)
|
|
|
|
# define lllinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_ERROR
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderr err
|
2016-06-11 22:55:27 +02:00
|
|
|
# define audllerr llerr
|
2013-05-19 23:12:28 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderr (void)
|
2016-06-11 22:55:27 +02:00
|
|
|
# define audllerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_WARN
|
|
|
|
# define audwarn warn
|
|
|
|
# define audllwarn llwarn
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audwarn (void)
|
|
|
|
# define audllwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_INFO
|
|
|
|
# define audinfo info
|
|
|
|
# define audllinfo llinfo
|
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audinfo (void)
|
|
|
|
# define audllinfo (void)
|
2013-05-19 23:12:28 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 16:35:22 +02:00
|
|
|
#ifdef CONFIG_DEBUG_DMA_ERROR
|
|
|
|
# define dmaerr err
|
|
|
|
# define dmallerr llerr
|
|
|
|
#else
|
|
|
|
# define dmaerr (void)
|
|
|
|
# define dmallerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
|
|
|
# define dmawarn warn
|
|
|
|
# define dmallwarn llwarn
|
|
|
|
#else
|
|
|
|
# define dmawarn (void)
|
|
|
|
# define dmallwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
|
|
|
# define dmainfo info
|
|
|
|
# define dmallinfo llinfo
|
|
|
|
#else
|
|
|
|
# define dmainfo (void)
|
|
|
|
# define dmallinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
|
|
|
# define irqerr err
|
|
|
|
# define irqllerr llerr
|
|
|
|
#else
|
|
|
|
# define irqerr (void)
|
|
|
|
# define irqllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_WARN
|
|
|
|
# define irqwarn warn
|
|
|
|
# define irqllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define irqwarn (void)
|
|
|
|
# define irqllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
|
|
|
# define irqinfo info
|
|
|
|
# define irqllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define irqinfo (void)
|
|
|
|
# define irqllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 19:40:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LCD_ERROR
|
|
|
|
# define lcderr err
|
|
|
|
# define lcdllerr llerr
|
|
|
|
#else
|
|
|
|
# define lcderr (void)
|
|
|
|
# define lcdllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
|
|
|
# define lcdwarn warn
|
|
|
|
# define lcdllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define lcdwarn (void)
|
|
|
|
# define lcdllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
|
|
|
# define lcdinfo info
|
|
|
|
# define lcdllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define lcdinfo (void)
|
|
|
|
# define lcdllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 22:12:19 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LEDS_ERROR
|
|
|
|
# define lederr err
|
|
|
|
# define ledllerr llerr
|
|
|
|
#else
|
|
|
|
# define lederr (void)
|
|
|
|
# define ledllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
|
|
|
# define ledwarn warn
|
|
|
|
# define ledllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define ledwarn (void)
|
|
|
|
# define ledllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
|
|
|
# define ledinfo info
|
|
|
|
# define ledllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define ledinfo (void)
|
|
|
|
# define ledllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GPIO_ERROR
|
|
|
|
# define gpioerr err
|
|
|
|
# define gpiollerr llerr
|
|
|
|
#else
|
|
|
|
# define gpioerr (void)
|
|
|
|
# define gpiollerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
|
|
|
# define gpiowarn warn
|
|
|
|
# define gpiollwarn llwarn
|
|
|
|
#else
|
|
|
|
# define gpiowarn (void)
|
|
|
|
# define gpiollwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
|
|
|
# define gpioinfo info
|
|
|
|
# define gpiollinfo llinfo
|
|
|
|
#else
|
|
|
|
# define gpioinfo (void)
|
|
|
|
# define gpiollinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:30:12 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2C_ERROR
|
|
|
|
# define i2cerr err
|
|
|
|
# define i2cllerr llerr
|
|
|
|
#else
|
|
|
|
# define i2cerr (void)
|
|
|
|
# define i2cllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
|
|
|
# define i2cwarn warn
|
|
|
|
# define i2cllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define i2cwarn (void)
|
|
|
|
# define i2cllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
|
|
|
# define i2cinfo info
|
|
|
|
# define i2cllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define i2cinfo (void)
|
|
|
|
# define i2cllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:54:01 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2S_ERROR
|
|
|
|
# define i2serr err
|
|
|
|
# define i2sllerr llerr
|
|
|
|
#else
|
|
|
|
# define i2serr (void)
|
|
|
|
# define i2sllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
|
|
|
# define i2swarn warn
|
|
|
|
# define i2sllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define i2swarn (void)
|
|
|
|
# define i2sllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
|
|
|
# define i2sinfo info
|
|
|
|
# define i2sllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define i2sinfo (void)
|
|
|
|
# define i2sllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 01:23:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PWM_ERROR
|
|
|
|
# define pwmerr err
|
|
|
|
# define pwmllerr llerr
|
|
|
|
#else
|
|
|
|
# define pwmerr (void)
|
|
|
|
# define pwmllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
|
|
|
# define pwmwarn warn
|
|
|
|
# define pwmllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define pwmwarn (void)
|
|
|
|
# define pwmllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
|
|
|
# define pwminfo info
|
|
|
|
# define pwmllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define pwminfo (void)
|
|
|
|
# define pwmllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:41:13 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_ERROR
|
|
|
|
# define snerr err
|
|
|
|
# define snllerr llerr
|
|
|
|
#else
|
|
|
|
# define snerr (void)
|
|
|
|
# define snllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
|
|
|
# define snwarn warn
|
|
|
|
# define snllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define snwarn (void)
|
|
|
|
# define snllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
|
|
|
# define sninfo info
|
|
|
|
# define snllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define sninfo (void)
|
|
|
|
# define snllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
|
|
|
# define spierr err
|
|
|
|
# define spillerr llerr
|
|
|
|
#else
|
|
|
|
# define spierr (void)
|
|
|
|
# define spillerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
|
|
|
# define spiwarn warn
|
|
|
|
# define spillwarn llwarn
|
|
|
|
#else
|
|
|
|
# define spiwarn (void)
|
|
|
|
# define spillwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
|
|
|
# define spiinfo info
|
|
|
|
# define spillinfo llinfo
|
|
|
|
#else
|
|
|
|
# define spiinfo (void)
|
|
|
|
# define spillinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 14:28:04 +02:00
|
|
|
#ifdef CONFIG_DEBUG_USB_ERROR
|
|
|
|
# define uerr err
|
|
|
|
# define ullerr llerr
|
|
|
|
#else
|
|
|
|
# define uerr (void)
|
|
|
|
# define ullerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
|
|
|
# define uwarn warn
|
|
|
|
# define ullwarn llwarn
|
|
|
|
#else
|
|
|
|
# define uwarn (void)
|
|
|
|
# define ullwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
|
|
|
# define uinfo info
|
|
|
|
# define ullinfo llinfo
|
|
|
|
#else
|
|
|
|
# define uinfo (void)
|
|
|
|
# define ullinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
|
|
|
# define wderr err
|
|
|
|
# define wdllerr llerr
|
|
|
|
#else
|
|
|
|
# define wderr (void)
|
|
|
|
# define wdllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
|
|
|
# define wdwarn warn
|
|
|
|
# define wdllwarn llwarn
|
|
|
|
#else
|
|
|
|
# define wdwarn (void)
|
|
|
|
# define wdllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
|
|
|
# define wdinfo info
|
|
|
|
# define wdllinfo llinfo
|
|
|
|
#else
|
|
|
|
# define wdinfo (void)
|
|
|
|
# define wdllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif /* CONFIG_CPP_HAVE_VARARGS */
|
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
/* Buffer dumping macros do not depend on varargs */
|
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
|
|
|
# define errdumpbuffer(m,b,n) lib_dumpbuffer(m,b,n)
|
2016-06-11 19:50:18 +02:00
|
|
|
# ifdef CONFIG_DEBUG_INFO
|
2016-06-11 19:59:51 +02:00
|
|
|
# define infodumpbuffer(m,b,n) lib_dumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
# else
|
2016-06-11 19:59:51 +02:00
|
|
|
# define infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
# endif
|
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
# endif
|
|
|
|
|
|
|
|
/* Subsystem specific debug */
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define minfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define minfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define sinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define sinfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
2010-08-22 05:44:18 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PAGING
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define pginfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2010-08-22 05:44:18 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define pginfodumpbuffer(m,b,n)
|
2010-08-22 05:44:18 +02:00
|
|
|
#endif
|
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
#ifdef CONFIG_DEBUG_NET
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define ninfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define ninfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define finfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define finfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
2011-07-29 20:51:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INPUT
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define iinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2011-07-29 20:51:56 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define iinfodumpbuffer(m,b,n)
|
2011-07-29 20:51:56 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 23:45:27 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ANALOG
|
|
|
|
# define aerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define ainfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define aerrdumpbuffer(m,b,n)
|
|
|
|
# define ainfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN
|
|
|
|
# define canerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define caninfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define canerrdumpbuffer(m,b,n)
|
|
|
|
# define caninfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define ginfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define ginfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define binfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define binfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define linfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define linfodumpbuffer(m,b,n)
|
2009-06-25 19:44:35 +02:00
|
|
|
#endif
|
|
|
|
|
2013-05-19 23:12:28 +02:00
|
|
|
#ifdef CONFIG_DEBUG_AUDIO
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define audinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
2013-05-19 23:12:28 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderrdumpbuffer(m,b,n)
|
2016-06-11 19:59:51 +02:00
|
|
|
# define audinfodumpbuffer(m,b,n)
|
2013-05-19 23:12:28 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_DMA
|
|
|
|
# define dmaerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define dmainfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define dmaerrdumpbuffer(m,b,n)
|
|
|
|
# define dmainfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ
|
|
|
|
# define irqerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define irqinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define irqerrdumpbuffer(m,b,n)
|
|
|
|
# define irqinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 19:40:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LCD
|
|
|
|
# define lcderrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define lcdinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define lcderrdumpbuffer(m,b,n)
|
|
|
|
# define lcdinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 22:12:19 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LEDS
|
|
|
|
# define lederrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define ledinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define lederrdumpbuffer(m,b,n)
|
|
|
|
# define ledinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GPIO
|
|
|
|
# define gpioerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define gpioinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define gpioerrdumpbuffer(m,b,n)
|
|
|
|
# define gpioinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:30:12 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2C
|
|
|
|
# define i2cerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define i2cinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define i2cerrdumpbuffer(m,b,n)
|
|
|
|
# define i2cinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:54:01 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2S
|
|
|
|
# define i2serrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define i2sinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define i2serrdumpbuffer(m,b,n)
|
|
|
|
# define i2sinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 01:23:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PWM
|
|
|
|
# define pwmerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define pwminfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define pwmerrdumpbuffer(m,b,n)
|
|
|
|
# define pwminfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:41:13 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SENSORS
|
|
|
|
# define snerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define sninfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define snerrdumpbuffer(m,b,n)
|
|
|
|
# define sninfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 14:28:04 +02:00
|
|
|
#ifdef CONFIG_DEBUG_USB
|
|
|
|
# define uerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define uinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define uerrdumpbuffer(m,b,n)
|
|
|
|
# define uinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG
|
|
|
|
# define wderrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define wdinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define wderrdumpbuffer(m,b,n)
|
|
|
|
# define wdinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Public Type Declarations
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2015-10-03 00:30:35 +02:00
|
|
|
* Public Data
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-01-09 02:13:24 +01:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Public Function Prototypes
|
2008-01-09 02:13:24 +01:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
2012-12-11 23:51:20 +01:00
|
|
|
extern "C"
|
|
|
|
{
|
2007-02-18 00:21:28 +01:00
|
|
|
#endif
|
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
/* Dump a buffer of data */
|
|
|
|
|
2014-07-03 15:58:43 +02:00
|
|
|
void lib_dumpbuffer(FAR const char *msg, FAR const uint8_t *buffer,
|
|
|
|
unsigned int buflen);
|
2009-06-25 19:44:35 +02:00
|
|
|
|
2014-07-03 15:58:43 +02:00
|
|
|
/* The system logging interfaces are normally accessed via the macros
|
2013-01-28 22:55:16 +01:00
|
|
|
* provided above. If the cross-compiler's C pre-processor supports a
|
|
|
|
* variable number of macro arguments, then those macros below will map all
|
|
|
|
* debug statements to the logging interfaces declared in syslog.h.
|
|
|
|
*
|
|
|
|
* If the cross-compiler's pre-processor does not support variable length
|
2012-07-17 05:58:11 +02:00
|
|
|
* arguments, then these additional APIs will be built.
|
2008-01-09 02:13:24 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONFIG_CPP_HAVE_VARARGS
|
2016-06-14 17:07:53 +02:00
|
|
|
#ifndef CONFIG_ARCH_LOWPUTC
|
|
|
|
int alert(const char *format, ...);
|
|
|
|
#endif
|
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
|
|
|
int err(const char *format, ...);
|
2008-01-09 02:13:24 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-11 22:55:27 +02:00
|
|
|
int llerr(const char *format, ...);
|
2008-01-09 02:13:24 +01:00
|
|
|
# endif
|
2016-06-11 23:50:49 +02:00
|
|
|
#endif /* CONFIG_DEBUG_ERROR */
|
2016-06-11 20:38:37 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
|
|
|
int warn(const char *format, ...);
|
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
|
|
|
int llwarn(const char *format, ...);
|
|
|
|
# endif
|
|
|
|
#endif /* CONFIG_DEBUG_WARN */
|
2008-01-09 02:13:24 +01:00
|
|
|
|
2016-06-11 20:38:37 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
2016-06-11 19:59:51 +02:00
|
|
|
int info(const char *format, ...);
|
2008-10-27 17:37:48 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-11 19:59:51 +02:00
|
|
|
int llinfo(const char *format, ...);
|
2008-10-27 17:37:48 +01:00
|
|
|
# endif
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif /* CONFIG_DEBUG_INFO */
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif /* CONFIG_CPP_HAVE_VARARGS */
|
|
|
|
|
2007-02-18 00:21:28 +01:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2009-06-17 18:28:50 +02:00
|
|
|
#endif /* __INCLUDE_DEBUG_H */
|