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-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
|
|
|
|
|
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
|
|
|
|
#ifndef __arch_lowsyslog
|
|
|
|
# define __arch_lowsyslog lowsyslog
|
|
|
|
#endif
|
|
|
|
|
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
|
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__)
|
2007-02-18 00:21:28 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +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-16 20:33:32 +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 */
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _err(x...)
|
|
|
|
# define _llerr(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-11 20:38:37 +02:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +02:00
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _llwarn(x...)
|
2016-06-11 20:38:37 +02:00
|
|
|
# endif
|
|
|
|
#else /* CONFIG_DEBUG_INFO */
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _warn(x...)
|
|
|
|
# define _llwarn(x...)
|
2016-06-11 20:38:37 +02:00
|
|
|
#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-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__)
|
2008-10-27 17:37:48 +01:00
|
|
|
|
2009-06-25 19:44:35 +02:00
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +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-16 20:33:32 +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-16 20:33:32 +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-16 20:33:32 +02:00
|
|
|
# define merr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define mllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define minfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define mllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define serr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define swarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define sllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define sllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-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__)
|
|
|
|
# define svcllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcerr(x...)
|
|
|
|
# define svcllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define svcllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcwarn(x...)
|
|
|
|
# define svcllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define svcllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcinfo(x...)
|
|
|
|
# define svcllinfo(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__)
|
|
|
|
# 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-16 20:33:32 +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-16 20:33:32 +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-16 20:33:32 +02:00
|
|
|
# define nerr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define nwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define nllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ninfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define nllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define ferr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define fwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define fllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define finfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define fllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define crypterr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define cryptllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define cryptllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define ierr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define illwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define illinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define aerr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define awarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define allwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ainfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define allinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# define canllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define canerr(x...)
|
|
|
|
# define canllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define canllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define canwarn(x...)
|
|
|
|
# define canllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_CAN_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define caninfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define canllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
|
|
|
# define caninfo(x...)
|
|
|
|
# define canllinfo(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__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define gllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ginfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define gllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define berr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define bwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define bllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define binfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define bllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define lerr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define lllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define linfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define lllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define auderr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define audllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define audllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmaerr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# define dmallerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmaerr(x...)
|
|
|
|
# define dmallerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmawarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define dmallwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmawarn(x...)
|
|
|
|
# define dmallwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmainfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define dmallinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmainfo(x...)
|
|
|
|
# define dmallinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
2016-06-16 20:33:32 +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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define irqllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqwarn(x...)
|
|
|
|
# define irqllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define irqllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqinfo(x...)
|
|
|
|
# define irqllinfo(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__)
|
|
|
|
# define lcdllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcderr(x...)
|
|
|
|
# define lcdllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define lcdllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdwarn(x...)
|
|
|
|
# define lcdllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define lcdllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdinfo(x...)
|
|
|
|
# define lcdllinfo(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__)
|
|
|
|
# define ledllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define lederr(x...)
|
|
|
|
# define ledllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define ledllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledwarn(x...)
|
|
|
|
# define ledllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define ledllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledinfo(x...)
|
|
|
|
# define ledllinfo(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__)
|
|
|
|
# define gpiollerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioerr(x...)
|
|
|
|
# define gpiollerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpiowarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define gpiollwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpiowarn(x...)
|
|
|
|
# define gpiollwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define gpiollinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioinfo(x...)
|
|
|
|
# define gpiollinfo(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__)
|
|
|
|
# define i2cllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cerr(x...)
|
|
|
|
# define i2cllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define i2cllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cwarn(x...)
|
|
|
|
# define i2cllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define i2cllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cinfo(x...)
|
|
|
|
# define i2cllinfo(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__)
|
|
|
|
# define i2sllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2serr(x...)
|
|
|
|
# define i2sllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2swarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define i2sllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2swarn(x...)
|
|
|
|
# define i2sllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2sinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define i2sllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2sinfo(x...)
|
|
|
|
# define i2sllinfo(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__)
|
|
|
|
# define pwmllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmerr(x...)
|
|
|
|
# define pwmllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define pwmllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmwarn(x...)
|
|
|
|
# define pwmllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwminfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define pwmllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwminfo(x...)
|
|
|
|
# define pwmllinfo(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__)
|
|
|
|
# define rtcllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcerr(x...)
|
|
|
|
# define rtcllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define rtcllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcwarn(x...)
|
|
|
|
# define rtcllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define rtcllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcinfo(x...)
|
|
|
|
# define rtcllinfo(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__)
|
|
|
|
# define mcllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcerr(x...)
|
|
|
|
# define mcllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define mcllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcwarn(x...)
|
|
|
|
# define mcllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define mcllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcinfo(x...)
|
|
|
|
# define mcllinfo(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__)
|
|
|
|
# define snllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snerr(x...)
|
|
|
|
# define snllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define snllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snwarn(x...)
|
|
|
|
# define snllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sninfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define snllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define sninfo(x...)
|
|
|
|
# define snllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spierr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# define spillerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spierr(x...)
|
|
|
|
# define spillerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define spillwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiwarn(x...)
|
|
|
|
# define spillwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define spillinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiinfo(x...)
|
|
|
|
# define spillinfo(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__)
|
|
|
|
# define tmrllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrerr(x...)
|
|
|
|
# define tmrllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define tmrllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrwarn(x...)
|
|
|
|
# define tmrllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define tmrllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrinfo(x...)
|
|
|
|
# define tmrllinfo(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__)
|
|
|
|
# define ullerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uerr(x...)
|
|
|
|
# define ullerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define ullwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uwarn(x...)
|
|
|
|
# define ullwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define ullinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uinfo(x...)
|
|
|
|
# define ullinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wderr(format, ...) _err(format, ##__VA_ARGS__)
|
|
|
|
# define wdllerr(format, ...) _llerr(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wderr(x...)
|
|
|
|
# define wdllerr(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdwarn(format, ...) _warn(format, ##__VA_ARGS__)
|
|
|
|
# define wdllwarn(format, ...) _llwarn(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdwarn(x...)
|
|
|
|
# define wdllwarn(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdinfo(format, ...) _info(format, ##__VA_ARGS__)
|
|
|
|
# define wdllinfo(format, ...) _llinfo(format, ##__VA_ARGS__)
|
2016-06-16 14:28:04 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define _llerr (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
# endif
|
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _err (void)
|
|
|
|
# define _llerr (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WARN
|
|
|
|
# ifndef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _llwarn (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
# endif
|
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _warn (void)
|
|
|
|
# define _llwarn (void)
|
2016-06-11 20:38:37 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INFO
|
|
|
|
# ifndef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +02:00
|
|
|
# define _llinfo (void)
|
2008-10-27 17:37:48 +01:00
|
|
|
# endif
|
2008-01-09 02:13:24 +01:00
|
|
|
#else
|
2016-06-16 20:33:32 +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-16 20:33:32 +02:00
|
|
|
# define merr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mwarn _warn
|
|
|
|
# define mllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define minfo _info
|
|
|
|
# define mllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define serr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define swarn _warn
|
|
|
|
# define sllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sinfo _info
|
|
|
|
# define sllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 16:12:38 +02:00
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcerr _err
|
|
|
|
# define svcllerr _llerr
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcerr (void)
|
|
|
|
# define svcllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcwarn _warn
|
|
|
|
# define svcllwarn _llwarn
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcwarn (void)
|
|
|
|
# define svcllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SYSCALL_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define svcinfo _info
|
|
|
|
# define svcllinfo _llinfo
|
2016-06-16 16:12:38 +02:00
|
|
|
#else
|
|
|
|
# define svcinfo (void)
|
|
|
|
# define svcllinfo (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
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pgwarn _warn
|
|
|
|
# define pgllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pginfo _info
|
|
|
|
# define pgllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define nerr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define nwarn _warn
|
|
|
|
# define nllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ninfo _info
|
|
|
|
# define nllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define ferr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define fwarn _warn
|
|
|
|
# define fllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define finfo _info
|
|
|
|
# define fllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define crypterr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptwarn _warn
|
|
|
|
# define cryptllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define cryptinfo _info
|
|
|
|
# define cryptllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#else
|
|
|
|
# define cryptinfo(x...)
|
|
|
|
# define cryptllinfo(x...)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_INPUT_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ierr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iwarn _warn
|
|
|
|
# define illwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define iinfo _info
|
|
|
|
# define illinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define aerr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define awarn _warn
|
|
|
|
# define allwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ainfo _info
|
|
|
|
# define allinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr _err
|
|
|
|
# define canllerr _llerr
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canerr (void)
|
|
|
|
# define canllerr (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
|
|
|
|
# define canllwarn _llwarn
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define canwarn (void)
|
|
|
|
# define canllwarn (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
|
|
|
|
# define canllinfo _llinfo
|
2016-06-15 23:45:27 +02:00
|
|
|
#else
|
2016-06-16 20:33:32 +02:00
|
|
|
# define caninfo (void)
|
|
|
|
# define canllinfo (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
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gwarn _warn
|
|
|
|
# define gllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ginfo _info
|
|
|
|
# define gllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define berr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define bwarn _warn
|
|
|
|
# define bllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define binfo _info
|
|
|
|
# define bllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define lerr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lwarn _warn
|
|
|
|
# define lllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define linfo _info
|
|
|
|
# define lllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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-16 20:33:32 +02:00
|
|
|
# define auderr _err
|
|
|
|
# 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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audwarn _warn
|
|
|
|
# define audllwarn _llwarn
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define audinfo _info
|
|
|
|
# define audllinfo _llinfo
|
2016-06-12 21:08:23 +02:00
|
|
|
#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
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmaerr _err
|
|
|
|
# define dmallerr _llerr
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmaerr (void)
|
|
|
|
# define dmallerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmawarn _warn
|
|
|
|
# define dmallwarn _llwarn
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmawarn (void)
|
|
|
|
# define dmallwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define dmainfo _info
|
|
|
|
# define dmallinfo _llinfo
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define dmainfo (void)
|
|
|
|
# define dmallinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqerr _err
|
|
|
|
# define irqllerr _llerr
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqerr (void)
|
|
|
|
# define irqllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqwarn _warn
|
|
|
|
# define irqllwarn _llwarn
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqwarn (void)
|
|
|
|
# define irqllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_IRQ_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define irqinfo _info
|
|
|
|
# define irqllinfo _llinfo
|
2016-06-15 16:35:22 +02:00
|
|
|
#else
|
|
|
|
# define irqinfo (void)
|
|
|
|
# define irqllinfo (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
|
|
|
|
# define lcdllerr _llerr
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcderr (void)
|
|
|
|
# define lcdllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdwarn _warn
|
|
|
|
# define lcdllwarn _llwarn
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdwarn (void)
|
|
|
|
# define lcdllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LCD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define lcdinfo _info
|
|
|
|
# define lcdllinfo _llinfo
|
2016-06-15 19:40:33 +02:00
|
|
|
#else
|
|
|
|
# define lcdinfo (void)
|
|
|
|
# define lcdllinfo (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
|
|
|
|
# define ledllerr _llerr
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define lederr (void)
|
|
|
|
# define ledllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledwarn _warn
|
|
|
|
# define ledllwarn _llwarn
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledwarn (void)
|
|
|
|
# define ledllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_LEDS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define ledinfo _info
|
|
|
|
# define ledllinfo _llinfo
|
2016-06-15 22:12:19 +02:00
|
|
|
#else
|
|
|
|
# define ledinfo (void)
|
|
|
|
# define ledllinfo (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
|
|
|
|
# define gpiollerr _llerr
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioerr (void)
|
|
|
|
# define gpiollerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpiowarn _warn
|
|
|
|
# define gpiollwarn _llwarn
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpiowarn (void)
|
|
|
|
# define gpiollwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_GPIO_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define gpioinfo _info
|
|
|
|
# define gpiollinfo _llinfo
|
2016-06-15 17:20:23 +02:00
|
|
|
#else
|
|
|
|
# define gpioinfo (void)
|
|
|
|
# define gpiollinfo (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
|
|
|
|
# define i2cllerr _llerr
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cerr (void)
|
|
|
|
# define i2cllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cwarn _warn
|
|
|
|
# define i2cllwarn _llwarn
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cwarn (void)
|
|
|
|
# define i2cllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2C_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2cinfo _info
|
|
|
|
# define i2cllinfo _llinfo
|
2016-06-16 00:30:12 +02:00
|
|
|
#else
|
|
|
|
# define i2cinfo (void)
|
|
|
|
# define i2cllinfo (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
|
|
|
|
# define i2sllerr _llerr
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2serr (void)
|
|
|
|
# define i2sllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2swarn _warn
|
|
|
|
# define i2sllwarn _llwarn
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2swarn (void)
|
|
|
|
# define i2sllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_I2S_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define i2sinfo _info
|
|
|
|
# define i2sllinfo _llinfo
|
2016-06-16 00:54:01 +02:00
|
|
|
#else
|
|
|
|
# define i2sinfo (void)
|
|
|
|
# define i2sllinfo (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
|
|
|
|
# define pwmllerr _llerr
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmerr (void)
|
|
|
|
# define pwmllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwmwarn _warn
|
|
|
|
# define pwmllwarn _llwarn
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwmwarn (void)
|
|
|
|
# define pwmllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_PWM_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define pwminfo _info
|
|
|
|
# define pwmllinfo _llinfo
|
2016-06-16 01:23:56 +02:00
|
|
|
#else
|
|
|
|
# define pwminfo (void)
|
|
|
|
# define pwmllinfo (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
|
|
|
|
# define rtcllerr _llerr
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcerr (void)
|
|
|
|
# define rtcllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcwarn _warn
|
|
|
|
# define rtcllwarn _llwarn
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcwarn (void)
|
|
|
|
# define rtcllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_RTC_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define rtcinfo _info
|
|
|
|
# define rtcllinfo _llinfo
|
2016-06-16 15:39:23 +02:00
|
|
|
#else
|
|
|
|
# define rtcinfo (void)
|
|
|
|
# define rtcllinfo (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
|
|
|
|
# define mcllerr _llerr
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcerr (void)
|
|
|
|
# define mcllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcwarn _warn
|
|
|
|
# define mcllwarn _llwarn
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcwarn (void)
|
|
|
|
# define mcllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_MEMCARD_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define mcinfo _info
|
|
|
|
# define mcllinfo _llinfo
|
2016-06-16 15:50:54 +02:00
|
|
|
#else
|
|
|
|
# define mcinfo (void)
|
|
|
|
# define mcllinfo (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
|
|
|
|
# define snllerr _llerr
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snerr (void)
|
|
|
|
# define snllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define snwarn _warn
|
|
|
|
# define snllwarn _llwarn
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define snwarn (void)
|
|
|
|
# define snllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SENSORS_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define sninfo _info
|
|
|
|
# define snllinfo _llinfo
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define sninfo (void)
|
|
|
|
# define snllinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spierr _err
|
|
|
|
# define spillerr _llerr
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spierr (void)
|
|
|
|
# define spillerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiwarn _warn
|
|
|
|
# define spillwarn _llwarn
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiwarn (void)
|
|
|
|
# define spillwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_SPI_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define spiinfo _info
|
|
|
|
# define spillinfo _llinfo
|
2016-06-15 18:41:13 +02:00
|
|
|
#else
|
|
|
|
# define spiinfo (void)
|
|
|
|
# define spillinfo (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
|
|
|
|
# define tmrllerr _llerr
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrerr (void)
|
|
|
|
# define tmrllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrwarn _warn
|
|
|
|
# define tmrllwarn _llwarn
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrwarn (void)
|
|
|
|
# define tmrllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_TIMER_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define tmrinfo _info
|
|
|
|
# define tmrllinfo _llinfo
|
2016-06-16 15:16:25 +02:00
|
|
|
#else
|
|
|
|
# define tmrinfo (void)
|
|
|
|
# define tmrllinfo (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
|
|
|
|
# define ullerr _llerr
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uerr (void)
|
|
|
|
# define ullerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uwarn _warn
|
|
|
|
# define ullwarn _llwarn
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uwarn (void)
|
|
|
|
# define ullwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_USB_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define uinfo _info
|
|
|
|
# define ullinfo _llinfo
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define uinfo (void)
|
|
|
|
# define ullinfo (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_ERROR
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wderr _err
|
|
|
|
# define wdllerr _llerr
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wderr (void)
|
|
|
|
# define wdllerr (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_WARN
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdwarn _warn
|
|
|
|
# define wdllwarn _llwarn
|
2016-06-16 14:28:04 +02:00
|
|
|
#else
|
|
|
|
# define wdwarn (void)
|
|
|
|
# define wdllwarn (void)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_WATCHDOG_INFO
|
2016-06-16 20:33:32 +02:00
|
|
|
# define wdinfo _info
|
|
|
|
# define wdllinfo _llinfo
|
2016-06-16 14:28:04 +02:00
|
|
|
#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
|
|
|
|
|
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-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
|
2016-06-16 20:33:32 +02:00
|
|
|
int _err(const char *format, ...);
|
2008-01-09 02:13:24 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +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
|
2016-06-16 20:33:32 +02:00
|
|
|
int _warn(const char *format, ...);
|
2016-06-11 20:38:37 +02:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +02:00
|
|
|
int _llwarn(const char *format, ...);
|
2016-06-11 20:38:37 +02:00
|
|
|
# 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-16 20:33:32 +02:00
|
|
|
int _info(const char *format, ...);
|
2008-10-27 17:37:48 +01:00
|
|
|
|
|
|
|
# ifdef CONFIG_ARCH_LOWPUTC
|
2016-06-16 20:33:32 +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 */
|