diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-16 09:54:32 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-16 09:54:32 -0600 |
commit | 140c51cb231e695e08fca861a37ceeeed8b260d7 (patch) | |
tree | 1cf88ecd29a6c1b079619b5d6572f7183e7d88c7 /nuttx/include | |
parent | 08be24e16d857b79c0e3ac7e3f6beb6c114d0662 (diff) | |
download | nuttx-140c51cb231e695e08fca861a37ceeeed8b260d7.tar.gz nuttx-140c51cb231e695e08fca861a37ceeeed8b260d7.tar.bz2 nuttx-140c51cb231e695e08fca861a37ceeeed8b260d7.zip |
Unify sensor debug. ADX driver was using input debug; LM75 and QENCODE that their own custom debug. Now all use CONFIG_DEBUG_SENSOR, sndbg()
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/debug.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/nuttx/include/debug.h b/nuttx/include/debug.h index 56a5b9e77..10ef6889e 100644 --- a/nuttx/include/debug.h +++ b/nuttx/include/debug.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/debug.h * - * Copyright (C) 2007-2011, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2011, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -248,6 +248,18 @@ # define illvdbg(x...) #endif +#ifdef CONFIG_DEBUG_SENSORS +# define sndbg(format, ...) dbg(format, ##__VA_ARGS__) +# define snlldbg(format, ...) lldbg(format, ##__VA_ARGS__) +# define snvdbg(format, ...) vdbg(format, ##__VA_ARGS__) +# define snllvdbg(format, ...) llvdbg(format, ##__VA_ARGS__) +#else +# define sndbg(x...) +# define snlldbg(x...) +# define snvdbg(x...) +# define snllvdbg(x...) +#endif + #ifdef CONFIG_DEBUG_ANALOG # define adbg(format, ...) dbg(format, ##__VA_ARGS__) # define alldbg(format, ...) lldbg(format, ##__VA_ARGS__) @@ -441,6 +453,18 @@ # define illvdbg (void) #endif +#ifdef CONFIG_DEBUG_SENSORS +# define sndbg dbg +# define snlldbg lldbg +# define snvdbg vdbg +# define snllvdbg llvdbg +#else +# define sndbg (void) +# define snlldbg (void) +# define snvdbg (void) +# define snllvdbg (void) +#endif + #ifdef CONFIG_DEBUG_ANALOG # define adbg dbg # define alldbg lldbg |