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
|
2016-06-16 20:33:32 +02:00
|
|
|
* missing (i.e., _info()), then it is common. The common _info() macro
|
2016-06-11 20:38:37 +02:00
|
|
|
* 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-16 20:38:05 +02:00
|
|
|
* _alert() - is a special, high-priority, unconditional version that is really
|
2016-06-14 17:07:53 +02:00
|
|
|
* 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
|
|
|
|
|
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-16 20:33:32 +02:00
|
|
|
/* The actual logger function may be overridden in arch/debug.h if needed.
|
|
|
|
* (Currently only if the pre-processor supports variadic macros)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __arch_syslog
|
|
|
|
# define __arch_syslog syslog
|
|
|
|
#endif
|
|
|
|
|
2016-06-21 13:26:08 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ALERT
|
2016-06-21 06:38:54 +02:00
|
|
|
# define _alert(format, ...) \
|
2016-06-20 16:57:08 +02:00
|
|
|
__arch_syslog(LOG_EMERG, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-21 06:38:54 +02:00
|
|
|
#else /* CONFIG_DEBUG_ERROR */
|
|
|
|
# define _alert(x...)
|
|
|
|
#endif
|
2016-06-14 17:07:53 +02:00
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _err(format, ...) \
|
2016-06-11 20:38:37 +02:00
|
|
|
__arch_syslog(LOG_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-21 06:38:54 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _err(x...)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _warn(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_syslog(LOG_WARNING, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-21 06:38:54 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _warn(x...)
|
2016-06-21 06:38:54 +02:00
|
|
|
#endif
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2016-06-11 20:38:37 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _info(format, ...) \
|
2016-06-14 17:07:53 +02:00
|
|
|
__arch_syslog(LOG_INFO, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__)
|
2016-06-21 06:38:54 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _info(x...)
|
2016-06-21 06:38:54 +02:00
|
|
|
#endif
|
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-16 20:33:32 +02:00
|
|
|
# define merr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define mwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define minfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define minfo(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-16 20:33:32 +02:00
|
|
|
# define serr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define swarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define swarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define sinfo(x...)
|
2007-11-23 23:32:52 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-16 16:12:38 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PAGING_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pgerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
|
|
|
# define pgerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pgwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
|
|
|
# define pgwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pginfo(format, ...) _info(format, ##__VA_ARGS__)
|
2010-08-22 05:44:18 +02:00
|
|
|
#else
|
2016-06-20 19:59:15 +02:00
|
|
|
# define pginfo(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-16 20:33:32 +02:00
|
|
|
# define nerr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define nwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define nwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ninfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ninfo(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-16 20:33:32 +02:00
|
|
|
# define ferr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define fwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define fwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define finfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define finfo(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-16 20:33:32 +02:00
|
|
|
# define crypterr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptinfo(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-16 20:33:32 +02:00
|
|
|
# define ierr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iinfo(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-16 20:33:32 +02:00
|
|
|
# define aerr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define awarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define awarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ainfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ainfo(x...)
|
2011-12-14 20:12:00 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 23:45:27 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CAN_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define canerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define canwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define caninfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define caninfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gerr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define gwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ginfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ginfo(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-16 20:33:32 +02:00
|
|
|
# define berr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define bwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define bwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define binfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define binfo(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-16 20:33:32 +02:00
|
|
|
# define lerr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define lwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define linfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define linfo(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-16 20:33:32 +02:00
|
|
|
# define auderr(format, ...) _err(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-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audwarn(x...)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audinfo(x...)
|
2013-05-19 23:12:28 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 16:35:22 +02:00
|
|
|
#ifdef CONFIG_DEBUG_DMA_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmaerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmaerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmawarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmawarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmainfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmainfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
2016-06-15 17:20:23 +02:00
|
|
|
# define irqerr(x...)
|
2016-06-15 16:35:22 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 19:40:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LCD_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcderr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcderr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 22:12:19 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LEDS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lederr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define lederr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GPIO_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpiowarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpiowarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:30:12 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2C_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:54:01 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2S_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2serr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2serr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2swarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2swarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2sinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2sinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 01:23:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PWM_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwminfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwminfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:39:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_RTC_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:50:54 +02:00
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:41:13 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sninfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define sninfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spierr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spierr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:16:25 +02:00
|
|
|
#ifdef CONFIG_DEBUG_TIMER_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 14:28:04 +02:00
|
|
|
#ifdef CONFIG_DEBUG_USB_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uerr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wderr(format, ...) _err(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wderr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdinfo(format, ...) _info(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdinfo(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-21 13:26:08 +02:00
|
|
|
#ifndef CONFIG_DEBUG_ALERT
|
2016-06-16 20:38:05 +02:00
|
|
|
# define _alert (void)
|
2016-06-14 17:07:53 +02:00
|
|
|
# endif
|
|
|
|
|
2016-06-20 20:44:38 +02:00
|
|
|
#ifndef CONFIG_DEBUG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _err (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-20 17:37:08 +02:00
|
|
|
#ifndef CONFIG_DEBUG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _warn (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-20 19:59:15 +02:00
|
|
|
#ifndef CONFIG_DEBUG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _info (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-16 20:33:32 +02:00
|
|
|
# define merr _err
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define merr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define mwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define minfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define minfo (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-16 20:33:32 +02:00
|
|
|
# define serr _err
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define serr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define swarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define swarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SCHED_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sinfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define sinfo (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-16 16:12:38 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcerr _err
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcwarn _warn
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcinfo _info
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PAGING_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pgerr _err
|
2010-08-22 05:44:18 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define pgerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pgwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pgwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PAGING_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pginfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define pginfo (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-16 20:33:32 +02:00
|
|
|
# define nerr _err
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define nerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define nwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define nwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_NET_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ninfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ninfo (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-16 20:33:32 +02:00
|
|
|
# define ferr _err
|
2014-07-03 15:58:43 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ferr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define fwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define fwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define finfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define finfo (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-16 20:33:32 +02:00
|
|
|
# define crypterr _err
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define crypterr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define cryptwarn (void)
|
2008-01-09 02:13:24 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CRYPTO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptinfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-12-03 17:43:35 +01:00
|
|
|
# define cryptinfo (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ierr _err
|
2011-07-29 20:51:56 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define ierr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iinfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define iinfo (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-16 20:33:32 +02:00
|
|
|
# define aerr _err
|
2011-12-14 20:12:00 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define aerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define awarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define awarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_ANALOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ainfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ainfo (void)
|
2011-12-14 20:12:00 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 23:45:27 +02:00
|
|
|
#ifdef CONFIG_DEBUG_CAN_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr _err
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr (void)
|
2016-06-15 23:45:27 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canwarn _warn
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canwarn (void)
|
2016-06-15 23:45:27 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define caninfo _info
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define caninfo (void)
|
2016-06-15 23:45:27 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-12 21:08:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gerr _err
|
2008-11-25 01:09:14 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define gerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define gwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GRAPHICS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ginfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define ginfo (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-16 20:33:32 +02:00
|
|
|
# define berr _err
|
2009-06-17 18:28:50 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define berr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define bwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define bwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_BINFMT_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define binfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define binfo (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-16 20:33:32 +02:00
|
|
|
# define lerr _err
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define lerr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define lwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LIB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define linfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define linfo (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-16 20:33:32 +02:00
|
|
|
# define auderr _err
|
2013-05-19 23:12:28 +02:00
|
|
|
#else
|
2016-06-11 23:50:49 +02:00
|
|
|
# define auderr (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audwarn _warn
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audwarn (void)
|
2016-06-12 21:08:23 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_AUDIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audinfo _info
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
2016-06-11 20:38:37 +02:00
|
|
|
# define audinfo (void)
|
2013-05-19 23:12:28 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-15 16:35:22 +02:00
|
|
|
#ifdef CONFIG_DEBUG_DMA_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmaerr _err
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmaerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmawarn _warn
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmawarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmainfo _info
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmainfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqerr _err
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqwarn _warn
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqinfo _info
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 19:40:33 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LCD_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcderr _err
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcderr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdwarn _warn
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdinfo _info
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 22:12:19 +02:00
|
|
|
#ifdef CONFIG_DEBUG_LEDS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lederr _err
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define lederr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledwarn _warn
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledinfo _info
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 17:20:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_GPIO_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioerr _err
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpiowarn _warn
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpiowarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioinfo _info
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:30:12 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2C_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cerr _err
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cwarn _warn
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cinfo _info
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 00:54:01 +02:00
|
|
|
#ifdef CONFIG_DEBUG_I2S_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2serr _err
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2serr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2swarn _warn
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2swarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2sinfo _info
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2sinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 01:23:56 +02:00
|
|
|
#ifdef CONFIG_DEBUG_PWM_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmerr _err
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmwarn _warn
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwminfo _info
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwminfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:39:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_RTC_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcerr _err
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcwarn _warn
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcinfo _info
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:50:54 +02:00
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcerr _err
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcwarn _warn
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcinfo _info
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:41:13 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snerr _err
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snwarn _warn
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sninfo _info
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define sninfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spierr _err
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spierr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiwarn _warn
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiinfo _info
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:16:25 +02:00
|
|
|
#ifdef CONFIG_DEBUG_TIMER_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrerr _err
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrwarn _warn
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrinfo _info
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrinfo (void)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 14:28:04 +02:00
|
|
|
#ifdef CONFIG_DEBUG_USB_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uerr _err
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uwarn _warn
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uinfo _info
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wderr _err
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wderr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdwarn _warn
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdinfo _info
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdinfo (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
|
|
|
|
|
2016-06-16 16:12:38 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL
|
|
|
|
# define svcerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define svcinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define svcerrdumpbuffer(m,b,n)
|
|
|
|
# define svcinfodumpbuffer(m,b,n)
|
|
|
|
#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-16 15:39:23 +02:00
|
|
|
#ifdef CONFIG_DEBUG_RTC
|
|
|
|
# define rtcerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define rtcinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define rtcerrdumpbuffer(m,b,n)
|
|
|
|
# define rtcinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
2016-06-16 15:50:54 +02:00
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD
|
|
|
|
# define mcerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define mcinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define mcerrdumpbuffer(m,b,n)
|
|
|
|
# define mcinfodumpbuffer(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 15:16:25 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SPI
|
|
|
|
# define spierrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define spiinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define spierrdumpbuffer(m,b,n)
|
|
|
|
# define spiinfodumpbuffer(m,b,n)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER
|
|
|
|
# define tmrerrdumpbuffer(m,b,n) errdumpbuffer(m,b,n)
|
|
|
|
# define tmrinfodumpbuffer(m,b,n) infodumpbuffer(m,b,n)
|
|
|
|
#else
|
|
|
|
# define tmrerrdumpbuffer(m,b,n)
|
|
|
|
# define tmrinfodumpbuffer(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-21 13:26:08 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ALERT
|
2016-06-16 20:38:05 +02:00
|
|
|
int _alert(const char *format, ...);
|
2016-06-14 17:07:53 +02:00
|
|
|
#endif
|
|
|
|
|
2016-06-11 23:50:49 +02:00
|
|
|
#ifdef CONFIG_DEBUG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
int _err(const char *format, ...);
|
2016-06-20 20:44:38 +02:00
|
|
|
#endif
|
2016-06-11 20:38:37 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
int _warn(const char *format, ...);
|
2016-06-20 17:37:08 +02:00
|
|
|
#endif
|
2008-01-09 02:13:24 +01:00
|
|
|
|
2016-06-11 20:38:37 +02:00
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
int _info(const char *format, ...);
|
2016-06-20 19:59:15 +02:00
|
|
|
#endif
|
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 */
|