diff options
Diffstat (limited to 'nuttx/net/iob/iob_add_queue.c')
-rw-r--r-- | nuttx/net/iob/iob_add_queue.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/net/iob/iob_add_queue.c b/nuttx/net/iob/iob_add_queue.c index 0a2ac3d0a..f915b49a0 100644 --- a/nuttx/net/iob/iob_add_queue.c +++ b/nuttx/net/iob/iob_add_queue.c @@ -39,6 +39,13 @@ #include <nuttx/config.h> +#if defined(CONFIG_DEBUG) && defined(CONFIG_NET_IOB_DEBUG) +/* Force debug output (from this file only) */ + +# undef CONFIG_DEBUG_NET +# define CONFIG_DEBUG_NET 1 +#endif + #include <assert.h> #include <errno.h> #include <debug.h> @@ -47,6 +54,8 @@ #include "iob.h" +#if CONFIG_IOB_NCHAINS > 0 + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -102,3 +111,5 @@ int iob_add_queue(FAR struct iob_s *iob, FAR struct iob_queue_s *iobq) return 0; } + +#endif /* CONFIG_IOB_NCHAINS > 0 */ |