Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion Documentation/components/drivers/special/syslog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Debug Interfaces

In NuttX, syslog output is really synonymous to debug output and,
therefore, the debugging interface macros defined in the header
file ``include/debug.h`` are also syslogging interfaces. Those
file ``include/nuttx/debug.h`` are also syslogging interfaces. Those
macros are simply wrappers around ``syslog()``. The debugging
interfaces differ from the syslog interfaces in that:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/components/libs/libc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ There is also a ``misc/`` subdirectory that contains various internal functions
and interfaces from header files that are too few to warrant their own sub-
directory::

misc - Nonstandard "glue" logic, debug.h, crc32.h, dirent.h
misc - Nonstandard "glue" logic, nuttx/debug.h, crc32.h, dirent.h

Library Database
================
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ Appendix : out-of-tree code
+
+#include <nuttx/config.h>
+
+#include <debug.h>
+#include <nuttx/debug.h>
+
+#include <nuttx/board.h>
+#include <arch/board/board.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ NOTES:
for this.

- /dev/console still exists and still refers to the serial port. So
you can still use certain kinds of debug output (see include/debug.h, all
you can still use certain kinds of debug output (see include/nuttx/debug.h, all
of the debug output from interrupt handlers will be lost.

- But don't enable USB debug output! Since USB is console is used for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ NOTES:
for this.

- /dev/console still exists and still refers to the serial port. So
you can still use certain kinds of debug output (see include/debug.h, all
you can still use certain kinds of debug output (see include/nuttx/debug.h, all
debug output from interrupt handlers will be lost.

- But don't enable USB debug output! Since USB is console is used for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ NOTES:
for this.

- /dev/console still exists and still refers to the serial port. So
you can still use certain kinds of debug output (see include/debug.h, all
you can still use certain kinds of debug output (see include/nuttx/debug.h, all
of the debug output from interrupt handlers will be lost.

- But don't enable USB debug output! Since USB is console is used for
Expand Down
6 changes: 3 additions & 3 deletions Documentation/quickstart/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ following options:
You can then select from the subsystems that are available, Network, Scheduler, USB, etc. Note that you will need to
separately enable the subsystem elsewhere in the ``menuconfig`` system. To see the ``CONFIG`` define that is set,
use the arrow keys to highlight the subsystem (for instance, :menuselection:`Network Debug Features`) and type :kbd:`?`. This will show
you that the C macro that is set is called ``CONFIG_DEBUG_NET``. ``debug.h`` defines the ``netinfo()`` logging
you that the C macro that is set is called ``CONFIG_DEBUG_NET``. ``nuttx/debug.h`` defines the ``netinfo()`` logging
function that will log output if this macro is set. You can search the source code for ``netinfo`` to see how it is
used.

Expand All @@ -39,13 +39,13 @@ used.
Note that enabling all these will produce an incredible amount of logging output. Enable the level you want and
the area you're interested in, and leave the rest disabled, save the config, and then recompile. You can see the full
list of debug feature logging functions in the file
`debug.h <https://github.com/apache/nuttx/blob/master/include/debug.h>`__.
`debug.h <https://github.com/apache/nuttx/blob/master/include/nuttx/debug.h>`__.

Syslog timestamps can be enabled in the configuration in :menuselection:`Device Drivers --> System Logging --> Prepend
timestamp to syslog message` (``CONFIG_SYSLOG_TIMESTAMP``).

You may need to do a little bit of experimenting to find the combination of logging settings that work for the problem
you're trying to solve. See the file `debug.h <https://github.com/apache/nuttx/blob/master/include/debug.h>`_
you're trying to solve. See the file `debug.h <https://github.com/apache/nuttx/blob/master/include/nuttx/debug.h>`_
for available debug settings that are available.

There are also subsystems that enable USB trace debugging, and you can log to memory too, if you need the logging to be
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/a1x/a1x_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <stdint.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/a1x/a1x_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <stdint.h>
#include <time.h>
#include <errno.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <arch/board/board.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/a1x/a1x_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/am335x/am335x_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/cache.h>
#ifdef CONFIG_LEGACY_PAGING
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/am335x/am335x_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/video/edid.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/am335x/am335x_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <nuttx/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/am335x/am335x_lcdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <nuttx/video/fb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/am335x/am335x_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_allocpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_checkmapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>
#include <nuttx/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_dataabort.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <inttypes.h>
#include <stdint.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>

#include "sched/sched.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_pginitialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <nuttx/config.h>

#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>
#include <nuttx/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_prefetchabort.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <inttypes.h>
#include <stdint.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#ifdef CONFIG_LEGACY_PAGING
# include <nuttx/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

#include <stdint.h>
#include <sched.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_sigdeliver.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <stdint.h>
#include <sched.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <syscall.h>

#include <nuttx/addrenv.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_undefinedinsn.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <sched/sched.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/arm/arm_va2pte.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>
#include <nuttx/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_dumpnvic.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <nuttx/config.h>
#include <nuttx/coredump.h>
#include <sys/types.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>

#include "arm_internal.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_hardfault.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <arch/irq.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_ramvec_attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <nuttx/config.h>

#include <errno.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/spinlock.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_ramvec_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <nuttx/config.h>

#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <inttypes.h>

#include <nuttx/arch.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <stdint.h>
#include <sched.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_sigdeliver.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include <stdint.h>
#include <sched.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv6-m/arm_svcall.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <syscall.h>

#include <arch/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_addrenv.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <nuttx/pgalloc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_addrenv_kstack.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_addrenv_ustack.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <nuttx/sched.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_addrenv_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/pgalloc.h>
#include <nuttx/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_allocpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_checkmapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/sched.h>
#include <nuttx/page.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_cpu_psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
***************************************************************************/

#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <assert.h>
#include <nuttx/arch.h>
#include <arch/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_cpustart.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>

#include <nuttx/arch.h>
#include <nuttx/sched.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-a/arm_dataabort.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

#include <stdint.h>
#include <assert.h>
#include <debug.h>

#include <nuttx/debug.h>
#include <nuttx/irq.h>

#include "mmu.h"
Expand Down
Loading
Loading