You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2026/04/11 13:39:34 UTC
(nuttx-apps) 01/02: include/debug.h: Use in apps
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 9d849adfabac2a33ef1ee73ecfdc3648eb5f7454
Author: Piyush Patle <pi...@gmail.com>
AuthorDate: Wed Apr 1 16:29:59 2026 +0530
include/debug.h: Use <nuttx/debug.h> in apps
Replace app-side includes of <debug.h> with <nuttx/debug.h> to use the
header from the NuttX tree explicitly after the header move.
Signed-off-by: Piyush Patle <pi...@gmail.com>
---
builtin/exec_builtin.c | 2 +-
canutils/canlib/canlib_getbaud.c | 2 +-
canutils/canlib/canlib_getloopback.c | 2 +-
canutils/canlib/canlib_getsilent.c | 2 +-
canutils/canlib/canlib_setbaud.c | 2 +-
canutils/canlib/canlib_setloopback.c | 2 +-
canutils/canlib/canlib_setsilent.c | 2 +-
examples/adc/adc_main.c | 4 ++--
examples/ajoystick/ajoy_main.c | 2 +-
examples/battery/batt_main.c | 4 ++--
examples/bridge/bridge_main.c | 2 +-
examples/camera/camera_bkgd.c | 2 +-
examples/can/can_main.c | 2 +-
examples/capture/cap_main.c | 2 +-
examples/chat/chat_main.c | 2 +-
examples/configdata/configdata_main.c | 4 ++--
examples/cordic/cordic_main.c | 2 +-
examples/discover/discover_main.c | 2 +-
examples/djoystick/djoy_main.c | 2 +-
examples/elf/main/elf_main.c | 2 +-
examples/etl/etl_main.cxx | 2 +-
examples/fbcon/fbcon_main.c | 5 ++---
examples/flowc/flowc.h | 2 +-
examples/ft80x/ft80x.h | 2 +-
examples/ftpd/ftpd_main.c | 2 +-
examples/hall/hall_main.c | 2 +-
examples/helloxx/helloxx_main.cxx | 2 +-
examples/hts221_reader/hts221_reader_main.c | 2 +-
examples/i2schar/i2schar_main.c | 2 +-
examples/i2schar/i2schar_receiver.c | 2 +-
examples/i2schar/i2schar_transmitter.c | 2 +-
examples/igmp/igmp.c | 2 +-
examples/igmp/igmp.h | 2 +-
examples/ipcfg/ipcfg_main.c | 2 +-
examples/keyboard/kbd_main.c | 2 +-
examples/lis3dsh_reader/lis3dsh_reader_main.c | 2 +-
examples/lsm303_reader/lsm303_reader_main.c | 2 +-
examples/lsm6dsl_reader/lsm6dsl_reader_main.c | 2 +-
examples/lvglterm/lvglterm.c | 2 +-
examples/mld/mld.h | 2 +-
examples/mld/mld_main.c | 2 +-
examples/module/chardev/chardev.c | 2 +-
examples/module/main/module_main.c | 2 +-
examples/mtdpart/mtdpart_main.c | 2 +-
examples/mtdrwb/mtdrwb_main.c | 2 +-
examples/netloop/lo_listener.c | 2 +-
examples/netloop/lo_main.c | 2 +-
examples/nettest/nettest.h | 2 +-
examples/nettest/nettest_netinit.c | 2 +-
examples/nettest/nettest_target1.c | 2 +-
examples/nng_test/pubsub.c | 2 +-
examples/nrf24l01_btle/nrf24l01_btle.c | 2 +-
examples/nrf24l01_btle/nrf24l01_btle.h | 2 +-
examples/nrf24l01_term/nrf24l01_term.c | 2 +-
examples/nunchuck/nunchuck_main.c | 2 +-
examples/nx/nx_events.c | 2 +-
examples/nx/nx_kbdin.c | 2 +-
examples/nx/nx_main.c | 2 +-
examples/nxdemo/nxdemo_bkgd.c | 2 +-
examples/nxdemo/nxdemo_main.c | 2 +-
examples/nxflat/nxflat_main.c | 2 +-
examples/nxhello/nxhello_bkgd.c | 2 +-
examples/nxhello/nxhello_main.c | 2 +-
examples/nximage/nximage_bkgd.c | 2 +-
examples/nximage/nximage_main.c | 2 +-
examples/nxlines/nxlines_bkgd.c | 2 +-
examples/nxlines/nxlines_main.c | 2 +-
examples/nxterm/nxterm_main.c | 2 +-
examples/nxterm/nxterm_toolbar.c | 2 +-
examples/nxterm/nxterm_wndo.c | 2 +-
examples/nxtext/nxtext_bkgd.c | 2 +-
examples/nxtext/nxtext_main.c | 2 +-
examples/nxtext/nxtext_popup.c | 2 +-
examples/nxtext/nxtext_putc.c | 4 ++--
examples/pf_ieee802154/pfieee802154.h | 2 +-
examples/poll/net_listener.c | 2 +-
examples/poll/net_reader.c | 2 +-
examples/poll/poll_listener.c | 2 +-
examples/poll/poll_main.c | 2 +-
examples/poll/select_listener.c | 2 +-
examples/posix_spawn/spawn_main.c | 2 +-
examples/powerled/powerled_main.c | 2 +-
examples/powermonitor/powermonitor_main.c | 2 +-
examples/pwfb/pwfb_events.c | 2 +-
examples/pwfb/pwfb_main.c | 2 +-
examples/pwlines/pwlines_events.c | 2 +-
examples/pwlines/pwlines_main.c | 2 +-
examples/pwlines/pwlines_update.c | 2 +-
examples/pwm/pwm_main.c | 4 ++--
examples/qencoder/qe_main.c | 4 ++--
examples/random/random_main.c | 2 +-
examples/relays/relays_main.c | 2 +-
examples/rmtchar/rmtchar_common.c | 2 +-
examples/rmtchar/rmtchar_main.c | 4 ++--
examples/rmtchar/rmtchar_receiver.c | 2 +-
examples/rmtchar/rmtchar_transmitter.c | 2 +-
examples/smps/smps_main.c | 2 +-
examples/sotest/main/sotest_main.c | 2 +-
examples/sx127x_demo/sx127x_demo.c | 2 +-
examples/tcpblaster/tcpblaster.h | 2 +-
examples/tcpblaster/tcpblaster_netinit.c | 2 +-
examples/tcpblaster/tcpblaster_target1.c | 2 +-
examples/tcpecho/tcpecho_main.c | 2 +-
examples/thttpd/thttpd_main.c | 2 +-
examples/touchscreen/tc_main.c | 2 +-
examples/udp/udp.h | 2 +-
examples/udp/udp_netinit.c | 2 +-
examples/udpblaster/udpblaster_target.c | 2 +-
examples/usbserial/usbserial_main.c | 2 +-
examples/usrsocktest/usrsocktest_daemon.c | 2 +-
examples/usrsocktest/usrsocktest_main.c | 2 +-
examples/watchdog/watchdog_main.c | 2 +-
examples/watcher/wdt.c | 2 +-
examples/webserver/webserver_main.c | 2 +-
examples/wgetjson/wgetjson_main.c | 2 +-
examples/ws2812/ws2812_main.c | 4 ++--
examples/ws2812esp32rmt/ws2812esp32rmt_main.c | 2 +-
examples/xmlrpc/xmlrpc_main.c | 2 +-
examples/zerocross/zerocross_main.c | 2 +-
fsutils/flash_eraseall/flash_eraseall.c | 2 +-
fsutils/flashtool/flashtool_main.c | 2 +-
fsutils/inifile/inifile.c | 2 +-
fsutils/ipcfg/ipcfg.c | 2 +-
fsutils/ipcfg/ipcfg_binary.c | 12 ++++++------
fsutils/ipcfg/ipcfg_text.c | 14 +++++++-------
fsutils/mkfatfs/configfat.c | 2 +-
fsutils/mkfatfs/mkfatfs.c | 2 +-
fsutils/mkfatfs/writefat.c | 6 +++---
fsutils/mkgpt/mkgpt.c | 2 +-
graphics/ft80x/ft80x.h | 2 +-
graphics/input/generator/input_gen_ctx.c | 2 +-
graphics/input/generator/input_gen_dev.c | 2 +-
graphics/input/generator/input_gen_event.c | 2 +-
graphics/nxwidgets/UnitTests/CButton/cbutton_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx | 2 +-
.../nxwidgets/UnitTests/CButtonArray/cbuttonarray_main.cxx | 2 +-
.../nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx | 2 +-
.../nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CCheckBox/ccheckbox_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.hxx | 2 +-
.../nxwidgets/UnitTests/CGlyphButton/cglyphbutton_main.cxx | 2 +-
.../nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx | 2 +-
.../nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx | 2 +-
.../CGlyphSliderHorizontal/cglyphsliderhorizontal_main.cxx | 2 +-
.../CGlyphSliderHorizontal/cglyphsliderhorizontaltest.cxx | 2 +-
.../CGlyphSliderHorizontal/cglyphsliderhorizontaltest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CImage/cimage_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CImage/cimagetest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CImage/cimagetest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CKeypad/ckeypad_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CLabel/clabel_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CLabel/clabeltest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CLabel/clabeltest.hxx | 2 +-
.../nxwidgets/UnitTests/CLatchButton/clatchbutton_main.cxx | 2 +-
.../nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx | 2 +-
.../nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx | 2 +-
.../UnitTests/CLatchButtonArray/clatchbuttonarray_main.cxx | 2 +-
.../UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx | 2 +-
.../UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CListBox/clistbox_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CListBox/clistboxtest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CListBox/clistboxtest.hxx | 2 +-
.../nxwidgets/UnitTests/CProgressBar/cprogressbar_main.cxx | 2 +-
.../nxwidgets/UnitTests/CProgressBar/cprogressbartest.cxx | 2 +-
.../nxwidgets/UnitTests/CProgressBar/cprogressbartest.hxx | 2 +-
.../nxwidgets/UnitTests/CRadioButton/cradiobutton_main.cxx | 2 +-
.../nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx | 2 +-
.../nxwidgets/UnitTests/CRadioButton/cradiobuttontest.hxx | 2 +-
.../CScrollbarHorizontal/cscrollbarhorizontal_main.cxx | 2 +-
.../CScrollbarHorizontal/cscrollbarhorizontaltest.cxx | 2 +-
.../CScrollbarHorizontal/cscrollbarhorizontaltest.hxx | 2 +-
.../CScrollbarVertical/cscrollbarvertical_main.cxx | 2 +-
.../CScrollbarVertical/cscrollbarverticaltest.cxx | 2 +-
.../CScrollbarVertical/cscrollbarverticaltest.hxx | 2 +-
.../UnitTests/CSliderHorizonal/csliderhorizontal_main.cxx | 2 +-
.../UnitTests/CSliderHorizonal/csliderhorizontaltest.cxx | 2 +-
.../UnitTests/CSliderHorizonal/csliderhorizontaltest.hxx | 2 +-
.../UnitTests/CSliderVertical/cslidervertical_main.cxx | 2 +-
.../UnitTests/CSliderVertical/csliderverticaltest.cxx | 2 +-
.../UnitTests/CSliderVertical/csliderverticaltest.hxx | 2 +-
graphics/nxwidgets/UnitTests/CTextBox/ctextbox_main.cxx | 2 +-
graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.cxx | 2 +-
graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx | 2 +-
graphics/nxwidgets/src/ccallback.cxx | 4 ++--
graphics/nxwidgets/src/cgraphicsport.cxx | 2 +-
graphics/nxwidgets/src/cimage.cxx | 2 +-
graphics/nxwidgets/src/clabelgrid.cxx | 2 +-
graphics/nxwidgets/src/cnumericedit.cxx | 2 +-
graphics/nxwidgets/src/cnxserver.cxx | 2 +-
graphics/nxwidgets/src/cnxtimer.cxx | 2 +-
graphics/nxwidgets/src/cscaledbitmap.cxx | 4 ++--
graphics/nxwidgets/src/cscrollingpanel.cxx | 2 +-
graphics/nxwidgets/src/cwidgetcontrol.cxx | 2 +-
graphics/nxwidgets/src/singletons.cxx | 2 +-
graphics/nxwm/src/ccalibration.cxx | 2 +-
graphics/nxwm/src/chexcalculator.cxx | 2 +-
graphics/nxwm/src/ckeyboard.cxx | 4 ++--
graphics/nxwm/src/cmediaplayer.cxx | 2 +-
graphics/nxwm/src/cnxterm.cxx | 2 +-
graphics/nxwm/src/ctaskbar.cxx | 4 ++--
graphics/nxwm/src/ctouchscreen.cxx | 6 +++---
graphics/nxwm/src/cwindowmessenger.cxx | 2 +-
graphics/slcd/cslcd.cxx | 2 +-
graphics/tiff/tiff_addstrip.c | 2 +-
graphics/tiff/tiff_finalize.c | 2 +-
graphics/tiff/tiff_initialize.c | 10 +++++-----
graphics/tiff/tiff_utils.c | 4 ++--
graphics/twm4nx/apps/ccalibration.cxx | 2 +-
graphics/twm4nx/apps/cclock.cxx | 2 +-
graphics/twm4nx/apps/cnxterm.cxx | 2 +-
graphics/twm4nx/src/cmainmenu.cxx | 2 +-
include/graphics/nxwidgets/cscaledbitmap.hxx | 2 +-
include/graphics/nxwm/cstartwindow.hxx | 2 +-
include/graphics/twm4nx/apps/calib_config.hxx | 2 +-
include/graphics/twm4nx/apps/clock_config.hxx | 2 +-
include/graphics/twm4nx/apps/nxterm_config.hxx | 2 +-
include/graphics/twm4nx/ciconwidget.hxx | 2 +-
include/graphics/twm4nx/twm4nx_config.hxx | 2 +-
include/netutils/cmux.h | 2 +-
industry/foc/fixed16/foc_cordic.c | 2 +-
industry/foc/float/foc_cordic.c | 2 +-
interpreters/python/python_wrapper.c | 2 +-
logging/nxscope/nxscope.c | 4 ++--
logging/nxscope/nxscope_chan.c | 2 +-
logging/nxscope/nxscope_idummy.c | 2 +-
logging/nxscope/nxscope_internals.c | 2 +-
logging/nxscope/nxscope_iser.c | 2 +-
logging/nxscope/nxscope_iudp.c | 2 +-
logging/nxscope/nxscope_pser.c | 4 ++--
lte/alt1250/alt1250_dbg.h | 2 +-
lte/lapi/src/lapi_dbg.h | 2 +-
netutils/chat/chat.c | 2 +-
netutils/cmux/cmux.h | 2 +-
netutils/dhcp6c/dhcp6c.c | 2 +-
netutils/dhcpc/dhcpc.c | 2 +-
netutils/dhcpd/dhcpd.c | 2 +-
netutils/discover/discover.c | 2 +-
netutils/esp8266/esp8266.c | 2 +-
netutils/ftpc/ftpc_chmod.c | 2 +-
netutils/ftpc/ftpc_cmd.c | 2 +-
netutils/ftpc/ftpc_connect.c | 2 +-
netutils/ftpc/ftpc_getfile.c | 2 +-
netutils/ftpc/ftpc_getreply.c | 2 +-
netutils/ftpc/ftpc_idle.c | 2 +-
netutils/ftpc/ftpc_listdir.c | 2 +-
netutils/ftpc/ftpc_login.c | 2 +-
netutils/ftpc/ftpc_putfile.c | 2 +-
netutils/ftpc/ftpc_rpwd.c | 2 +-
netutils/ftpc/ftpc_socket.c | 2 +-
netutils/ftpc/ftpc_transfer.c | 2 +-
netutils/ftpd/ftpd.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_cleanup.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_duphandle.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_escape.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_getinfo.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_init.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_perform.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_reset.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_setopt.c | 2 +-
netutils/libcurl4nx/curl4nx_easy_unescape.c | 2 +-
netutils/mdns/mdnsd.c | 2 +-
netutils/netinit/netinit.c | 2 +-
netutils/netlib/netlib_checkhttpconnectivity.c | 2 +-
netutils/netlib/netlib_checkifconflict.c | 2 +-
netutils/netlib/netlib_checkifconnectivity.c | 2 +-
netutils/netlib/netlib_checkipconnectivity.c | 2 +-
netutils/netlib/netlib_getifstatistics.c | 2 +-
netutils/netlib/netlib_ipmsfilter.c | 2 +-
netutils/netlib/netlib_listenon.c | 2 +-
netutils/netlib/netlib_nodeaddrconv.c | 2 +-
netutils/netlib/netlib_obtainipv4addr.c | 2 +-
netutils/netlib/netlib_obtainipv6addr.c | 2 +-
netutils/netlib/netlib_server.c | 2 +-
netutils/ntpclient/ntpclient.c | 2 +-
netutils/pppd/ppp.h | 2 +-
netutils/pppd/pppd.c | 2 +-
netutils/ptpd/ptpd.c | 2 +-
netutils/telnetd/telnetd_daemon.c | 2 +-
netutils/tftpc/tftpc_get.c | 2 +-
netutils/tftpc/tftpc_packets.c | 2 +-
netutils/tftpc/tftpc_put.c | 2 +-
netutils/thttpd/fdwatch.c | 2 +-
netutils/thttpd/libhttpd.c | 2 +-
netutils/thttpd/tdate_parse.c | 2 +-
netutils/thttpd/thttpd.c | 2 +-
netutils/thttpd/thttpd_alloc.c | 2 +-
netutils/thttpd/thttpd_cgi.c | 4 ++--
netutils/thttpd/timers.c | 2 +-
netutils/webclient/webclient.c | 4 ++--
netutils/webserver/httpd.c | 2 +-
netutils/webserver/httpd_dirlist.c | 2 +-
netutils/webserver/httpd_mmap.c | 2 +-
netutils/webserver/httpd_sendfile.c | 2 +-
nshlib/nsh_altconsole.c | 2 +-
nshlib/nsh_codeccmd.c | 2 +-
nshlib/nsh_console.c | 2 +-
nshlib/nsh_fscmds.c | 2 +-
nshlib/nsh_mntcmds.c | 2 +-
nshlib/nsh_netcmds.c | 2 +-
nshlib/nsh_parse.c | 2 +-
nshlib/nsh_telnetd.c | 2 +-
nshlib/nsh_usbconsole.c | 2 +-
nshlib/nsh_usbtrace.c | 2 +-
platform/mikroe-stm32f4/mikroe_configdata.c | 4 ++--
system/cdcacm/sercon_main.c | 2 +-
system/cdcacm/serdis_main.c | 2 +-
system/cle/cle.c | 2 +-
system/composite/composite_main.c | 2 +-
system/cu/cu_main.c | 2 +-
system/dd/dd_main.c | 2 +-
system/dhcp6c/renew6_main.c | 2 +-
system/i2c/i2c_main.c | 4 ++--
system/nxcamera/nxcamera.c | 2 +-
system/nxlooper/nxlooper.c | 2 +-
system/nxplayer/nxplayer.c | 2 +-
system/nxplayer/nxplayer_common.c | 2 +-
system/nxrecorder/nxrecorder.c | 2 +-
system/nxrecorder/nxrecorder_common.c | 2 +-
system/popen/popen.c | 2 +-
system/readline/readline_common.c | 2 +-
system/spi/spi_main.c | 2 +-
system/system/system.c | 2 +-
system/tee/tee.c | 2 +-
system/termcurses/tcurses_vt100.c | 2 +-
system/termcurses/termcurses.c | 2 +-
system/ubloxmodem/ubloxmodem_main.c | 2 +-
system/usbmsc/usbmsc_main.c | 2 +-
system/vi/vi.c | 2 +-
system/zmodem/zm.h | 6 +++---
testing/drivers/drivertest/drivertest_audio.c | 2 +-
testing/drivers/drivertest/drivertest_framebuffer.c | 2 +-
testing/drivers/drivertest/drivertest_lcd.c | 2 +-
testing/drivers/drivertest/drivertest_pwm.c | 4 ++--
testing/drivers/drivertest/drivertest_watchdog.c | 2 +-
testing/drivers/nand_sim/nand_sim_main.c | 6 +++---
testing/fs/epoll/epoll.c | 10 +++++-----
testing/fs/mtd_config_fs/mtd_config_fs_test_main.c | 2 +-
testing/fs/nxffs/nxffs_main.c | 4 ++--
testing/fs/smart/smart_main.c | 4 ++--
testing/libc/arch_libc/arch_libc_test_main.c | 2 +-
testing/libc/scanftest/scanftest_main.c | 2 +-
testing/mm/memstress/memorystress_main.c | 2 +-
testing/ostest/signest.c | 4 ++--
wireless/bluetooth/nimble/include/logcfg/logcfg.h | 2 +-
wireless/gs2200m/gs2200m_main.c | 2 +-
wireless/ieee802154/i8shark/i8shark_main.c | 2 +-
wireless/wapi/src/driver_wext.c | 2 +-
wireless/wapi/src/util.h | 2 +-
352 files changed, 403 insertions(+), 404 deletions(-)
diff --git a/builtin/exec_builtin.c b/builtin/exec_builtin.c
index 325d594cf..b87133243 100644
--- a/builtin/exec_builtin.c
+++ b/builtin/exec_builtin.c
@@ -29,7 +29,7 @@
#include <spawn.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "builtin/builtin.h"
diff --git a/canutils/canlib/canlib_getbaud.c b/canutils/canlib/canlib_getbaud.c
index af123edea..61ebb4de9 100644
--- a/canutils/canlib/canlib_getbaud.c
+++ b/canutils/canlib/canlib_getbaud.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/canutils/canlib/canlib_getloopback.c b/canutils/canlib/canlib_getloopback.c
index 443161e96..b931301d5 100644
--- a/canutils/canlib/canlib_getloopback.c
+++ b/canutils/canlib/canlib_getloopback.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/canutils/canlib/canlib_getsilent.c b/canutils/canlib/canlib_getsilent.c
index 868072eb1..18e2b0637 100644
--- a/canutils/canlib/canlib_getsilent.c
+++ b/canutils/canlib/canlib_getsilent.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/canutils/canlib/canlib_setbaud.c b/canutils/canlib/canlib_setbaud.c
index b3ee68f26..f8bbb23ff 100644
--- a/canutils/canlib/canlib_setbaud.c
+++ b/canutils/canlib/canlib_setbaud.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/canutils/canlib/canlib_setloopback.c b/canutils/canlib/canlib_setloopback.c
index 7e78b1a34..18164210c 100644
--- a/canutils/canlib/canlib_setloopback.c
+++ b/canutils/canlib/canlib_setloopback.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/canutils/canlib/canlib_setsilent.c b/canutils/canlib/canlib_setsilent.c
index 0900f9261..bf8ef1722 100644
--- a/canutils/canlib/canlib_setsilent.c
+++ b/canutils/canlib/canlib_setsilent.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/can/can.h>
diff --git a/examples/adc/adc_main.c b/examples/adc/adc_main.c
index 68f4f1955..e5678e123 100644
--- a/examples/adc/adc_main.c
+++ b/examples/adc/adc_main.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/analog/adc.h>
#include <nuttx/analog/ioctl.h>
@@ -95,7 +95,7 @@ static void adc_help(FAR struct adc_state_s *adc)
printf("Usage: adc [OPTIONS]\n");
printf("\nArguments are \"sticky\". "
"For example, once the ADC device is\n");
- printf("specified, that device will be re-used until it is changed.\n");
+ printf("specified, that device will be reused until it is changed.\n");
printf("\n\"sticky\" OPTIONS include:\n");
printf(" [-p devpath] selects the ADC device. "
"Default: %s Current: %s\n",
diff --git a/examples/ajoystick/ajoy_main.c b/examples/ajoystick/ajoy_main.c
index 178608b2f..8a58b66a9 100644
--- a/examples/ajoystick/ajoy_main.c
+++ b/examples/ajoystick/ajoy_main.c
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <errno.h>
#include <fixedmath.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/input/ajoystick.h>
diff --git a/examples/battery/batt_main.c b/examples/battery/batt_main.c
index d88a2885f..384d78147 100644
--- a/examples/battery/batt_main.c
+++ b/examples/battery/batt_main.c
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/power/battery_ioctl.h>
#include <nuttx/power/battery_charger.h>
@@ -117,7 +117,7 @@ void health_report(int health)
case BATTERY_HEALTH_GOOD:
{
- printf("Battery is in good condiction!\n");
+ printf("Battery is in good condition!\n");
}
break;
diff --git a/examples/bridge/bridge_main.c b/examples/bridge/bridge_main.c
index 8d2165514..183ccedbe 100644
--- a/examples/bridge/bridge_main.c
+++ b/examples/bridge/bridge_main.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <sched.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <net/if.h>
diff --git a/examples/camera/camera_bkgd.c b/examples/camera/camera_bkgd.c
index e53010dad..a0c0bd2fa 100644
--- a/examples/camera/camera_bkgd.c
+++ b/examples/camera/camera_bkgd.c
@@ -32,7 +32,7 @@
#include <stdlib.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/boardctl.h>
#include <arch/board/board.h>
diff --git a/examples/can/can_main.c b/examples/can/can_main.c
index b62f565fe..422458a33 100644
--- a/examples/can/can_main.c
+++ b/examples/can/can_main.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/can/can.h>
diff --git a/examples/capture/cap_main.c b/examples/capture/cap_main.c
index 2ba238a60..1c44e0383 100644
--- a/examples/capture/cap_main.c
+++ b/examples/capture/cap_main.c
@@ -37,7 +37,7 @@
#include <limits.h>
#include <inttypes.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/timers/capture.h>
diff --git a/examples/chat/chat_main.c b/examples/chat/chat_main.c
index caf6cca28..291e88824 100644
--- a/examples/chat/chat_main.c
+++ b/examples/chat/chat_main.c
@@ -45,7 +45,7 @@
#include <sys/ioctl.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
diff --git a/examples/configdata/configdata_main.c b/examples/configdata/configdata_main.c
index 236d8e267..3218569f6 100644
--- a/examples/configdata/configdata_main.c
+++ b/examples/configdata/configdata_main.c
@@ -35,7 +35,7 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
@@ -450,7 +450,7 @@ static int configdata_verifyconfig(void)
{
g_nverified++;
#if CONFIG_EXAMPLES_CONFIGDATA_VERBOSE != 0
- printf(" Verifed entry %04X, %d\n",
+ printf(" Verified entry %04X, %d\n",
entry->id, entry->instance);
#endif
}
diff --git a/examples/cordic/cordic_main.c b/examples/cordic/cordic_main.c
index 204a755ac..3d4aede0c 100644
--- a/examples/cordic/cordic_main.c
+++ b/examples/cordic/cordic_main.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <math.h>
#include <fixedmath.h>
diff --git a/examples/discover/discover_main.c b/examples/discover/discover_main.c
index cd14720ed..9f5941587 100644
--- a/examples/discover/discover_main.c
+++ b/examples/discover/discover_main.c
@@ -29,7 +29,7 @@
#include <string.h>
#include <unistd.h>
#include <time.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <netinet/in.h>
diff --git a/examples/djoystick/djoy_main.c b/examples/djoystick/djoy_main.c
index 110de4531..b3d1134c9 100644
--- a/examples/djoystick/djoy_main.c
+++ b/examples/djoystick/djoy_main.c
@@ -32,7 +32,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/input/djoystick.h>
diff --git a/examples/elf/main/elf_main.c b/examples/elf/main/elf_main.c
index 7a52b5f6e..000339e00 100644
--- a/examples/elf/main/elf_main.c
+++ b/examples/elf/main/elf_main.c
@@ -37,7 +37,7 @@
#include <unistd.h>
#include <string.h>
#include <pthread.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/symtab.h>
diff --git a/examples/etl/etl_main.cxx b/examples/etl/etl_main.cxx
index efb4aa835..f8628cdfc 100644
--- a/examples/etl/etl_main.cxx
+++ b/examples/etl/etl_main.cxx
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <cstdio>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <etl/vector.h>
#include <etl/numeric.h>
diff --git a/examples/fbcon/fbcon_main.c b/examples/fbcon/fbcon_main.c
index 2aa95e0c5..da0833800 100644
--- a/examples/fbcon/fbcon_main.c
+++ b/examples/fbcon/fbcon_main.c
@@ -42,7 +42,7 @@
#include <nuttx/video/fb.h>
#include <ctype.h>
#include <spawn.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <poll.h>
#include <nuttx/ascii.h>
#include <nuttx/lib/builtin.h>
@@ -1913,7 +1913,7 @@ static void fbcon_write(FAR struct fbcon_state_s *st,
do
{
- /* Is the character part of a VT100 escape sequnce? */
+ /* Is the character part of a VT100 escape sequence? */
state = fbcon_vt100(st, ch);
switch (state)
@@ -2652,4 +2652,3 @@ errout:
fprintf(stderr, "FBCON exiting with error %d\n", exitcode);
return exitcode;
}
-
diff --git a/examples/flowc/flowc.h b/examples/flowc/flowc.h
index c96fe76af..12caefa93 100644
--- a/examples/flowc/flowc.h
+++ b/examples/flowc/flowc.h
@@ -29,7 +29,7 @@
#ifdef EXAMPLES_FLOWC_HOST
#else
-# include <debug.h>
+# include <nuttx/debug.h>
#endif
/****************************************************************************
diff --git a/examples/ft80x/ft80x.h b/examples/ft80x/ft80x.h
index 0349f6eb4..70492f24e 100644
--- a/examples/ft80x/ft80x.h
+++ b/examples/ft80x/ft80x.h
@@ -31,7 +31,7 @@
#include <nuttx/compiler.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_EXAMPLES_FT80X
diff --git a/examples/ftpd/ftpd_main.c b/examples/ftpd/ftpd_main.c
index 5c7888b24..e2673572a 100644
--- a/examples/ftpd/ftpd_main.c
+++ b/examples/ftpd/ftpd_main.c
@@ -33,7 +33,7 @@
#include <unistd.h>
#include <sched.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/param.h>
#include <netinet/in.h>
diff --git a/examples/hall/hall_main.c b/examples/hall/hall_main.c
index ed3c3b570..e0fdc2e78 100644
--- a/examples/hall/hall_main.c
+++ b/examples/hall/hall_main.c
@@ -37,7 +37,7 @@
#include <limits.h>
#include <inttypes.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/sensors/hall3ph.h>
diff --git a/examples/helloxx/helloxx_main.cxx b/examples/helloxx/helloxx_main.cxx
index c3425ff6b..8df920916 100644
--- a/examples/helloxx/helloxx_main.cxx
+++ b/examples/helloxx/helloxx_main.cxx
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <cstdio>
-#include <debug.h>
+#include <nuttx/debug.h>
//***************************************************************************
// Definitions
diff --git a/examples/hts221_reader/hts221_reader_main.c b/examples/hts221_reader/hts221_reader_main.c
index ac00ede5e..5c1c39664 100644
--- a/examples/hts221_reader/hts221_reader_main.c
+++ b/examples/hts221_reader/hts221_reader_main.c
@@ -32,7 +32,7 @@
#include <errno.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/sensors/hts221.h>
diff --git a/examples/i2schar/i2schar_main.c b/examples/i2schar/i2schar_main.c
index dec7b70c1..176def927 100644
--- a/examples/i2schar/i2schar_main.c
+++ b/examples/i2schar/i2schar_main.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <nuttx/audio/audio.h>
diff --git a/examples/i2schar/i2schar_receiver.c b/examples/i2schar/i2schar_receiver.c
index fdcc0c8ba..e088bee9f 100644
--- a/examples/i2schar/i2schar_receiver.c
+++ b/examples/i2schar/i2schar_receiver.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <string.h>
diff --git a/examples/i2schar/i2schar_transmitter.c b/examples/i2schar/i2schar_transmitter.c
index df1560ac6..14e4ec347 100644
--- a/examples/i2schar/i2schar_transmitter.c
+++ b/examples/i2schar/i2schar_transmitter.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <sys/ioctl.h>
diff --git a/examples/igmp/igmp.c b/examples/igmp/igmp.c
index da904fa34..7da32c680 100644
--- a/examples/igmp/igmp.c
+++ b/examples/igmp/igmp.c
@@ -29,7 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <net/if.h>
diff --git a/examples/igmp/igmp.h b/examples/igmp/igmp.h
index 11ffb57f9..3cf99b1b0 100644
--- a/examples/igmp/igmp.h
+++ b/examples/igmp/igmp.h
@@ -27,7 +27,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/examples/ipcfg/ipcfg_main.c b/examples/ipcfg/ipcfg_main.c
index f64a73ea8..51c411081 100644
--- a/examples/ipcfg/ipcfg_main.c
+++ b/examples/ipcfg/ipcfg_main.c
@@ -30,7 +30,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <arpa/inet.h>
diff --git a/examples/keyboard/kbd_main.c b/examples/keyboard/kbd_main.c
index ff832c862..d793e6344 100644
--- a/examples/keyboard/kbd_main.c
+++ b/examples/keyboard/kbd_main.c
@@ -33,7 +33,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/input/keyboard.h>
diff --git a/examples/lis3dsh_reader/lis3dsh_reader_main.c b/examples/lis3dsh_reader/lis3dsh_reader_main.c
index dad00b312..98194ea66 100644
--- a/examples/lis3dsh_reader/lis3dsh_reader_main.c
+++ b/examples/lis3dsh_reader/lis3dsh_reader_main.c
@@ -47,7 +47,7 @@
#include <fcntl.h>
#include <sched.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <time.h>
#include <unistd.h>
diff --git a/examples/lsm303_reader/lsm303_reader_main.c b/examples/lsm303_reader/lsm303_reader_main.c
index b48e81a2d..51611720d 100644
--- a/examples/lsm303_reader/lsm303_reader_main.c
+++ b/examples/lsm303_reader/lsm303_reader_main.c
@@ -32,7 +32,7 @@
#include <errno.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/sensors/lsm303agr.h>
diff --git a/examples/lsm6dsl_reader/lsm6dsl_reader_main.c b/examples/lsm6dsl_reader/lsm6dsl_reader_main.c
index c3ec68ff7..6f7cf0355 100644
--- a/examples/lsm6dsl_reader/lsm6dsl_reader_main.c
+++ b/examples/lsm6dsl_reader/lsm6dsl_reader_main.c
@@ -32,7 +32,7 @@
#include <errno.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/sensors/lsm6dsl.h>
diff --git a/examples/lvglterm/lvglterm.c b/examples/lvglterm/lvglterm.c
index 90269daa8..71c5e650e 100644
--- a/examples/lvglterm/lvglterm.c
+++ b/examples/lvglterm/lvglterm.c
@@ -36,7 +36,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <poll.h>
#include <spawn.h>
#include <lvgl/lvgl.h>
diff --git a/examples/mld/mld.h b/examples/mld/mld.h
index 69d8f13a4..936a37062 100644
--- a/examples/mld/mld.h
+++ b/examples/mld/mld.h
@@ -27,7 +27,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/examples/mld/mld_main.c b/examples/mld/mld_main.c
index 363a7e41d..594115a22 100644
--- a/examples/mld/mld_main.c
+++ b/examples/mld/mld_main.c
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <net/if.h>
diff --git a/examples/module/chardev/chardev.c b/examples/module/chardev/chardev.c
index f0faa3bfb..b2fd7b61d 100644
--- a/examples/module/chardev/chardev.c
+++ b/examples/module/chardev/chardev.c
@@ -32,7 +32,7 @@
#include <string.h>
#include <errno.h>
#include <syslog.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/module.h>
#include <nuttx/lib/elf.h>
diff --git a/examples/module/main/module_main.c b/examples/module/main/module_main.c
index 37da14fee..9eb9b205e 100644
--- a/examples/module/main/module_main.c
+++ b/examples/module/main/module_main.c
@@ -38,7 +38,7 @@
#include <fcntl.h>
#include <syslog.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/module.h>
#include <nuttx/symtab.h>
diff --git a/examples/mtdpart/mtdpart_main.c b/examples/mtdpart/mtdpart_main.c
index 35ba65ce7..428eddc57 100644
--- a/examples/mtdpart/mtdpart_main.c
+++ b/examples/mtdpart/mtdpart_main.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/drivers/drivers.h>
diff --git a/examples/mtdrwb/mtdrwb_main.c b/examples/mtdrwb/mtdrwb_main.c
index 1ebbe44f5..93b9d3290 100644
--- a/examples/mtdrwb/mtdrwb_main.c
+++ b/examples/mtdrwb/mtdrwb_main.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/drivers/drivers.h>
diff --git a/examples/netloop/lo_listener.c b/examples/netloop/lo_listener.c
index 8b51027bb..20f72ad9c 100644
--- a/examples/netloop/lo_listener.c
+++ b/examples/netloop/lo_listener.c
@@ -39,7 +39,7 @@
#include <string.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <arpa/inet.h>
diff --git a/examples/netloop/lo_main.c b/examples/netloop/lo_main.c
index cfdfab429..513278b08 100644
--- a/examples/netloop/lo_main.c
+++ b/examples/netloop/lo_main.c
@@ -37,7 +37,7 @@
#include <fcntl.h>
#include <poll.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/examples/nettest/nettest.h b/examples/nettest/nettest.h
index e4ff7f3cc..fd314befb 100644
--- a/examples/nettest/nettest.h
+++ b/examples/nettest/nettest.h
@@ -31,7 +31,7 @@
#ifdef NETTEST_HOST
#else
-# include <debug.h>
+# include <nuttx/debug.h>
#endif
/****************************************************************************
diff --git a/examples/nettest/nettest_netinit.c b/examples/nettest/nettest_netinit.c
index 5c29ca411..e2e786164 100644
--- a/examples/nettest/nettest_netinit.c
+++ b/examples/nettest/nettest_netinit.c
@@ -28,7 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/examples/nettest/nettest_target1.c b/examples/nettest/nettest_target1.c
index 3875be272..47db8916b 100644
--- a/examples/nettest/nettest_target1.c
+++ b/examples/nettest/nettest_target1.c
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include <sched.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "nettest.h"
diff --git a/examples/nng_test/pubsub.c b/examples/nng_test/pubsub.c
index 4f285906e..78e427eb2 100644
--- a/examples/nng_test/pubsub.c
+++ b/examples/nng_test/pubsub.c
@@ -32,7 +32,7 @@
#include <pthread.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nng/nng.h>
#include <nng/protocol/pubsub0/pub.h>
diff --git a/examples/nrf24l01_btle/nrf24l01_btle.c b/examples/nrf24l01_btle/nrf24l01_btle.c
index ee373798f..6e1490f45 100644
--- a/examples/nrf24l01_btle/nrf24l01_btle.c
+++ b/examples/nrf24l01_btle/nrf24l01_btle.c
@@ -27,7 +27,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/signal.h>
diff --git a/examples/nrf24l01_btle/nrf24l01_btle.h b/examples/nrf24l01_btle/nrf24l01_btle.h
index 73d166356..9394ee568 100644
--- a/examples/nrf24l01_btle/nrf24l01_btle.h
+++ b/examples/nrf24l01_btle/nrf24l01_btle.h
@@ -31,7 +31,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/examples/nrf24l01_term/nrf24l01_term.c b/examples/nrf24l01_term/nrf24l01_term.c
index b8af3dca0..c120cafc1 100644
--- a/examples/nrf24l01_term/nrf24l01_term.c
+++ b/examples/nrf24l01_term/nrf24l01_term.c
@@ -38,7 +38,7 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <poll.h>
#include <fcntl.h>
diff --git a/examples/nunchuck/nunchuck_main.c b/examples/nunchuck/nunchuck_main.c
index fa72e1ce6..63200288c 100644
--- a/examples/nunchuck/nunchuck_main.c
+++ b/examples/nunchuck/nunchuck_main.c
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <errno.h>
#include <fixedmath.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/input/nunchuck.h>
diff --git a/examples/nx/nx_events.c b/examples/nx/nx_events.c
index 360856584..4e5616641 100644
--- a/examples/nx/nx_events.c
+++ b/examples/nx/nx_events.c
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/nx/nx_kbdin.c b/examples/nx/nx_kbdin.c
index 856323a24..cdab7fe20 100644
--- a/examples/nx/nx_kbdin.c
+++ b/examples/nx/nx_kbdin.c
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/nx/nx_main.c b/examples/nx/nx_main.c
index a7b9134c0..942d59870 100644
--- a/examples/nx/nx_main.c
+++ b/examples/nx/nx_main.c
@@ -38,7 +38,7 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nxdemo/nxdemo_bkgd.c b/examples/nxdemo/nxdemo_bkgd.c
index fd03f08c0..ecd82b238 100644
--- a/examples/nxdemo/nxdemo_bkgd.c
+++ b/examples/nxdemo/nxdemo_bkgd.c
@@ -34,7 +34,7 @@
#include <semaphore.h>
#include <sys/param.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/nxdemo/nxdemo_main.c b/examples/nxdemo/nxdemo_main.c
index ca5d5b878..e6875b9cd 100644
--- a/examples/nxdemo/nxdemo_main.c
+++ b/examples/nxdemo/nxdemo_main.c
@@ -38,7 +38,7 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nxflat/nxflat_main.c b/examples/nxflat/nxflat_main.c
index 0c8425e2e..c7ea6cf19 100644
--- a/examples/nxflat/nxflat_main.c
+++ b/examples/nxflat/nxflat_main.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <string.h>
#include <pthread.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/symtab.h>
diff --git a/examples/nxhello/nxhello_bkgd.c b/examples/nxhello/nxhello_bkgd.c
index ee73f2614..323b4870d 100644
--- a/examples/nxhello/nxhello_bkgd.c
+++ b/examples/nxhello/nxhello_bkgd.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxglib.h>
diff --git a/examples/nxhello/nxhello_main.c b/examples/nxhello/nxhello_main.c
index 13e2b8a62..8165d9abe 100644
--- a/examples/nxhello/nxhello_main.c
+++ b/examples/nxhello/nxhello_main.c
@@ -38,7 +38,7 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nximage/nximage_bkgd.c b/examples/nximage/nximage_bkgd.c
index 36ac04eda..8a86f0498 100644
--- a/examples/nximage/nximage_bkgd.c
+++ b/examples/nximage/nximage_bkgd.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxglib.h>
diff --git a/examples/nximage/nximage_main.c b/examples/nximage/nximage_main.c
index 4598ae4f6..fd2beac0b 100644
--- a/examples/nximage/nximage_main.c
+++ b/examples/nximage/nximage_main.c
@@ -38,7 +38,7 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nxlines/nxlines_bkgd.c b/examples/nxlines/nxlines_bkgd.c
index 22b068c64..f3e3940fd 100644
--- a/examples/nxlines/nxlines_bkgd.c
+++ b/examples/nxlines/nxlines_bkgd.c
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <string.h>
#include <sys/param.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fixedmath.h>
#include <inttypes.h>
diff --git a/examples/nxlines/nxlines_main.c b/examples/nxlines/nxlines_main.c
index 7b3d4ba0d..85b75177e 100644
--- a/examples/nxlines/nxlines_main.c
+++ b/examples/nxlines/nxlines_main.c
@@ -36,7 +36,7 @@
#include <string.h>
#include <sched.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nxterm/nxterm_main.c b/examples/nxterm/nxterm_main.c
index c1a912a08..6fbf0be6d 100644
--- a/examples/nxterm/nxterm_main.c
+++ b/examples/nxterm/nxterm_main.c
@@ -38,7 +38,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_NX_LCDDRIVER
# include <nuttx/lcd/lcd.h>
diff --git a/examples/nxterm/nxterm_toolbar.c b/examples/nxterm/nxterm_toolbar.c
index 24bcee463..0fa7c0802 100644
--- a/examples/nxterm/nxterm_toolbar.c
+++ b/examples/nxterm/nxterm_toolbar.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/examples/nxterm/nxterm_wndo.c b/examples/nxterm/nxterm_wndo.c
index 2bba6016a..c326e0449 100644
--- a/examples/nxterm/nxterm_wndo.c
+++ b/examples/nxterm/nxterm_wndo.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxglib.h>
diff --git a/examples/nxtext/nxtext_bkgd.c b/examples/nxtext/nxtext_bkgd.c
index 1e0d4a18d..8eb55ba09 100644
--- a/examples/nxtext/nxtext_bkgd.c
+++ b/examples/nxtext/nxtext_bkgd.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/examples/nxtext/nxtext_main.c b/examples/nxtext/nxtext_main.c
index 1ad8bb9b3..d3d02956f 100644
--- a/examples/nxtext/nxtext_main.c
+++ b/examples/nxtext/nxtext_main.c
@@ -38,7 +38,7 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/nxtext/nxtext_popup.c b/examples/nxtext/nxtext_popup.c
index 4ca10e1b7..19dbd3cc5 100644
--- a/examples/nxtext/nxtext_popup.c
+++ b/examples/nxtext/nxtext_popup.c
@@ -32,7 +32,7 @@
#include <string.h>
#include <semaphore.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/examples/nxtext/nxtext_putc.c b/examples/nxtext/nxtext_putc.c
index 47fdd9ba5..384ae22bb 100644
--- a/examples/nxtext/nxtext_putc.c
+++ b/examples/nxtext/nxtext_putc.c
@@ -32,7 +32,7 @@
#include <string.h>
#include <ctype.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
@@ -365,7 +365,7 @@ nxtext_getglyph(NXHANDLE hfont, FAR struct nxtext_state_s *st, uint8_t ch)
*
* Description:
* This is part of the nxtext_putc logic. It creates and positions a
- * the character and renders (or re-uses) a glyph for font.
+ * the character and renders (or reuses) a glyph for font.
*
****************************************************************************/
diff --git a/examples/pf_ieee802154/pfieee802154.h b/examples/pf_ieee802154/pfieee802154.h
index ee7a88b5c..adf9e3bd6 100644
--- a/examples/pf_ieee802154/pfieee802154.h
+++ b/examples/pf_ieee802154/pfieee802154.h
@@ -27,7 +27,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netpacket/ieee802154.h>
/****************************************************************************
diff --git a/examples/poll/net_listener.c b/examples/poll/net_listener.c
index 9db855477..e20306d6c 100644
--- a/examples/poll/net_listener.c
+++ b/examples/poll/net_listener.c
@@ -39,7 +39,7 @@
#include <string.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <arpa/inet.h>
diff --git a/examples/poll/net_reader.c b/examples/poll/net_reader.c
index 5e22822e3..288179763 100644
--- a/examples/poll/net_reader.c
+++ b/examples/poll/net_reader.c
@@ -39,7 +39,7 @@
#include <pthread.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <arpa/inet.h>
diff --git a/examples/poll/poll_listener.c b/examples/poll/poll_listener.c
index 5864c4222..ce912357d 100644
--- a/examples/poll/poll_listener.c
+++ b/examples/poll/poll_listener.c
@@ -36,7 +36,7 @@
#include <poll.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
diff --git a/examples/poll/poll_main.c b/examples/poll/poll_main.c
index 817916839..5dfb2d938 100644
--- a/examples/poll/poll_main.c
+++ b/examples/poll/poll_main.c
@@ -36,7 +36,7 @@
#include <fcntl.h>
#include <poll.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "poll_internal.h"
diff --git a/examples/poll/select_listener.c b/examples/poll/select_listener.c
index 69cfe92d6..e99eda06d 100644
--- a/examples/poll/select_listener.c
+++ b/examples/poll/select_listener.c
@@ -37,7 +37,7 @@
#include <pthread.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "poll_internal.h"
diff --git a/examples/posix_spawn/spawn_main.c b/examples/posix_spawn/spawn_main.c
index 100030b6c..34428d472 100644
--- a/examples/posix_spawn/spawn_main.c
+++ b/examples/posix_spawn/spawn_main.c
@@ -37,7 +37,7 @@
#include <string.h>
#include <fcntl.h>
#include <spawn.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/drivers/ramdisk.h>
diff --git a/examples/powerled/powerled_main.c b/examples/powerled/powerled_main.c
index 4478d2ee7..b949aadfa 100644
--- a/examples/powerled/powerled_main.c
+++ b/examples/powerled/powerled_main.c
@@ -35,7 +35,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/ioctl.h>
#ifndef CONFIG_NSH_ARCHINIT
diff --git a/examples/powermonitor/powermonitor_main.c b/examples/powermonitor/powermonitor_main.c
index 3a335dd66..0e13e3b4b 100644
--- a/examples/powermonitor/powermonitor_main.c
+++ b/examples/powermonitor/powermonitor_main.c
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdio.h>
#include <fixedmath.h>
#include <sys/types.h>
diff --git a/examples/pwfb/pwfb_events.c b/examples/pwfb/pwfb_events.c
index 142985ab7..bec7a845a 100644
--- a/examples/pwfb/pwfb_events.c
+++ b/examples/pwfb/pwfb_events.c
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/pwfb/pwfb_main.c b/examples/pwfb/pwfb_main.c
index 6a7bfc438..3b5993372 100644
--- a/examples/pwfb/pwfb_main.c
+++ b/examples/pwfb/pwfb_main.c
@@ -39,7 +39,7 @@
#include <pthread.h>
#include <fixedmath.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/pwlines/pwlines_events.c b/examples/pwlines/pwlines_events.c
index 73a2b80a6..3dcd0504c 100644
--- a/examples/pwlines/pwlines_events.c
+++ b/examples/pwlines/pwlines_events.c
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/pwlines/pwlines_main.c b/examples/pwlines/pwlines_main.c
index dc776d744..8d448cc11 100644
--- a/examples/pwlines/pwlines_main.c
+++ b/examples/pwlines/pwlines_main.c
@@ -39,7 +39,7 @@
#include <pthread.h>
#include <fixedmath.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
diff --git a/examples/pwlines/pwlines_update.c b/examples/pwlines/pwlines_update.c
index 2dbe4e39e..37d41456e 100644
--- a/examples/pwlines/pwlines_update.c
+++ b/examples/pwlines/pwlines_update.c
@@ -33,7 +33,7 @@
#include <inttypes.h>
#include <unistd.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fixedmath.h>
#include <nuttx/nx/nx.h>
diff --git a/examples/pwm/pwm_main.c b/examples/pwm/pwm_main.c
index 7a1a83c16..683587f08 100644
--- a/examples/pwm/pwm_main.c
+++ b/examples/pwm/pwm_main.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <inttypes.h>
@@ -199,7 +199,7 @@ static void pwm_help(FAR struct pwm_state_s *pwm)
printf("Usage: pwm [OPTIONS]\n");
printf("\nArguments are \"sticky\". "
"For example, once the PWM frequency is\n");
- printf("specified, that frequency will be re-used until it is changed.\n");
+ printf("specified, that frequency will be reused until it is changed.\n");
printf("\n\"sticky\" OPTIONS include:\n");
printf(" [-p devpath] selects the PWM device. "
"Default: %s Current: %s\n",
diff --git a/examples/qencoder/qe_main.c b/examples/qencoder/qe_main.c
index 2614fe7fb..504db260d 100644
--- a/examples/qencoder/qe_main.c
+++ b/examples/qencoder/qe_main.c
@@ -37,7 +37,7 @@
#include <limits.h>
#include <inttypes.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/sensors/qencoder.h>
@@ -317,7 +317,7 @@ int main(int argc, FAR char *argv[])
goto errout_with_dev;
}
- /* GETINDEX succesful */
+ /* GETINDEX successful */
else
{
diff --git a/examples/random/random_main.c b/examples/random/random_main.c
index 2b1be2827..3a35b4e89 100644
--- a/examples/random/random_main.c
+++ b/examples/random/random_main.c
@@ -31,7 +31,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
/****************************************************************************
diff --git a/examples/relays/relays_main.c b/examples/relays/relays_main.c
index f5ab6fb7b..83e108419 100644
--- a/examples/relays/relays_main.c
+++ b/examples/relays/relays_main.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_ARCH_RELAYS
diff --git a/examples/rmtchar/rmtchar_common.c b/examples/rmtchar/rmtchar_common.c
index 663f0abd5..098e5363a 100644
--- a/examples/rmtchar/rmtchar_common.c
+++ b/examples/rmtchar/rmtchar_common.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include "rmtchar.h"
diff --git a/examples/rmtchar/rmtchar_main.c b/examples/rmtchar/rmtchar_main.c
index dcf2c54f2..63a8ced85 100644
--- a/examples/rmtchar/rmtchar_main.c
+++ b/examples/rmtchar/rmtchar_main.c
@@ -33,7 +33,7 @@
#include <string.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "rmtchar.h"
@@ -112,7 +112,7 @@ static void rmtchar_help(FAR struct rmtchar_state_s *rmtchar)
printf("Usage: rmtchar [OPTIONS]\n");
printf("\nArguments are \"sticky\".\n");
printf("For example, once the RMT character device is\n");
- printf("specified, that device will be re-used until it is changed.\n");
+ printf("specified, that device will be reused until it is changed.\n");
printf("\n\"sticky\" OPTIONS include:\n");
printf(" [-i items] selects the number of words (items) to be transmitted"
" or received by the RMT character device. "
diff --git a/examples/rmtchar/rmtchar_receiver.c b/examples/rmtchar/rmtchar_receiver.c
index b6d94800e..2e1b20e36 100644
--- a/examples/rmtchar/rmtchar_receiver.c
+++ b/examples/rmtchar/rmtchar_receiver.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include "rmtchar.h"
diff --git a/examples/rmtchar/rmtchar_transmitter.c b/examples/rmtchar/rmtchar_transmitter.c
index 8c0528e2a..75fc0103b 100644
--- a/examples/rmtchar/rmtchar_transmitter.c
+++ b/examples/rmtchar/rmtchar_transmitter.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/audio/audio.h>
diff --git a/examples/smps/smps_main.c b/examples/smps/smps_main.c
index ba6a7b079..852696855 100644
--- a/examples/smps/smps_main.c
+++ b/examples/smps/smps_main.c
@@ -35,7 +35,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/ioctl.h>
#include <sys/boardctl.h>
diff --git a/examples/sotest/main/sotest_main.c b/examples/sotest/main/sotest_main.c
index 98b11730c..0d399568f 100644
--- a/examples/sotest/main/sotest_main.c
+++ b/examples/sotest/main/sotest_main.c
@@ -37,7 +37,7 @@
#include <syslog.h>
#include <dlfcn.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/symtab.h>
diff --git a/examples/sx127x_demo/sx127x_demo.c b/examples/sx127x_demo/sx127x_demo.c
index 05175a6ed..a93fe74fe 100644
--- a/examples/sx127x_demo/sx127x_demo.c
+++ b/examples/sx127x_demo/sx127x_demo.c
@@ -37,7 +37,7 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <poll.h>
#include <fcntl.h>
diff --git a/examples/tcpblaster/tcpblaster.h b/examples/tcpblaster/tcpblaster.h
index 9fc7c4dcc..5d645f4ab 100644
--- a/examples/tcpblaster/tcpblaster.h
+++ b/examples/tcpblaster/tcpblaster.h
@@ -31,7 +31,7 @@
#ifdef TCPBLASTER_HOST
#else
-# include <debug.h>
+# include <nuttx/debug.h>
#endif
/****************************************************************************
diff --git a/examples/tcpblaster/tcpblaster_netinit.c b/examples/tcpblaster/tcpblaster_netinit.c
index 6007674f4..f9719d295 100644
--- a/examples/tcpblaster/tcpblaster_netinit.c
+++ b/examples/tcpblaster/tcpblaster_netinit.c
@@ -28,7 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/examples/tcpblaster/tcpblaster_target1.c b/examples/tcpblaster/tcpblaster_target1.c
index f46fd0da8..827fe3a7d 100644
--- a/examples/tcpblaster/tcpblaster_target1.c
+++ b/examples/tcpblaster/tcpblaster_target1.c
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include <sched.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "tcpblaster.h"
diff --git a/examples/tcpecho/tcpecho_main.c b/examples/tcpecho/tcpecho_main.c
index 96aba8096..2de49f6af 100644
--- a/examples/tcpecho/tcpecho_main.c
+++ b/examples/tcpecho/tcpecho_main.c
@@ -28,7 +28,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <poll.h>
#include <stdint.h>
diff --git a/examples/thttpd/thttpd_main.c b/examples/thttpd/thttpd_main.c
index 291e7552c..5ee01b455 100644
--- a/examples/thttpd/thttpd_main.c
+++ b/examples/thttpd/thttpd_main.c
@@ -33,7 +33,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <arpa/inet.h>
diff --git a/examples/touchscreen/tc_main.c b/examples/touchscreen/tc_main.c
index 129de8d27..b2f40a8f7 100644
--- a/examples/touchscreen/tc_main.c
+++ b/examples/touchscreen/tc_main.c
@@ -33,7 +33,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_EXAMPLES_TOUCHSCREEN_MOUSE
# include <nuttx/input/mouse.h>
diff --git a/examples/udp/udp.h b/examples/udp/udp.h
index 415317f50..2f15d8ea3 100644
--- a/examples/udp/udp.h
+++ b/examples/udp/udp.h
@@ -29,7 +29,7 @@
#ifdef EXAMPLES_UDP_HOST
#else
-# include <debug.h>
+# include <nuttx/debug.h>
#endif
#include <arpa/inet.h>
diff --git a/examples/udp/udp_netinit.c b/examples/udp/udp_netinit.c
index 3cd2625b7..d5851b22a 100644
--- a/examples/udp/udp_netinit.c
+++ b/examples/udp/udp_netinit.c
@@ -28,7 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/examples/udpblaster/udpblaster_target.c b/examples/udpblaster/udpblaster_target.c
index 0df0072d4..be5908fbd 100644
--- a/examples/udpblaster/udpblaster_target.c
+++ b/examples/udpblaster/udpblaster_target.c
@@ -31,7 +31,7 @@
#include <string.h>
#include <poll.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <net/if.h>
diff --git a/examples/usbserial/usbserial_main.c b/examples/usbserial/usbserial_main.c
index 66e4790b9..e1eec27c8 100644
--- a/examples/usbserial/usbserial_main.c
+++ b/examples/usbserial/usbserial_main.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/usbdev_trace.h>
diff --git a/examples/usrsocktest/usrsocktest_daemon.c b/examples/usrsocktest/usrsocktest_daemon.c
index 3d84d8396..efa543591 100644
--- a/examples/usrsocktest/usrsocktest_daemon.c
+++ b/examples/usrsocktest/usrsocktest_daemon.c
@@ -31,7 +31,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
diff --git a/examples/usrsocktest/usrsocktest_main.c b/examples/usrsocktest/usrsocktest_main.c
index d09036c38..c6109423e 100644
--- a/examples/usrsocktest/usrsocktest_main.c
+++ b/examples/usrsocktest/usrsocktest_main.c
@@ -32,7 +32,7 @@
#include <malloc.h>
#include <stdio.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
diff --git a/examples/watchdog/watchdog_main.c b/examples/watchdog/watchdog_main.c
index 06a36c75d..4e22001a1 100644
--- a/examples/watchdog/watchdog_main.c
+++ b/examples/watchdog/watchdog_main.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
diff --git a/examples/watcher/wdt.c b/examples/watcher/wdt.c
index ccfbeaa98..667240dee 100644
--- a/examples/watcher/wdt.c
+++ b/examples/watcher/wdt.c
@@ -32,7 +32,7 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/ioctl.h>
#include <unistd.h>
diff --git a/examples/webserver/webserver_main.c b/examples/webserver/webserver_main.c
index 7a16c8c45..8309f59c8 100644
--- a/examples/webserver/webserver_main.c
+++ b/examples/webserver/webserver_main.c
@@ -51,7 +51,7 @@
#include <string.h>
#include <unistd.h>
#include <time.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <netinet/in.h>
diff --git a/examples/wgetjson/wgetjson_main.c b/examples/wgetjson/wgetjson_main.c
index 860a0fb5b..083d68e93 100644
--- a/examples/wgetjson/wgetjson_main.c
+++ b/examples/wgetjson/wgetjson_main.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/netlib.h"
#include "netutils/webclient.h"
diff --git a/examples/ws2812/ws2812_main.c b/examples/ws2812/ws2812_main.c
index 438e68f11..ebb16b575 100644
--- a/examples/ws2812/ws2812_main.c
+++ b/examples/ws2812/ws2812_main.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
@@ -77,7 +77,7 @@ static void help(FAR struct neo_config_s *conf)
printf("\nArguments are \"sticky\". "
"For example, once the device path is\n");
- printf("specified, that path will be re-used until it is changed.\n");
+ printf("specified, that path will be reused until it is changed.\n");
printf(" [-p path] selects the ws2812 device. "
"Default: %s Current: %s\n",
diff --git a/examples/ws2812esp32rmt/ws2812esp32rmt_main.c b/examples/ws2812esp32rmt/ws2812esp32rmt_main.c
index 3f451436e..7eb8dd6fe 100644
--- a/examples/ws2812esp32rmt/ws2812esp32rmt_main.c
+++ b/examples/ws2812esp32rmt/ws2812esp32rmt_main.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
diff --git a/examples/xmlrpc/xmlrpc_main.c b/examples/xmlrpc/xmlrpc_main.c
index feeb0bf4e..0d90626e5 100644
--- a/examples/xmlrpc/xmlrpc_main.c
+++ b/examples/xmlrpc/xmlrpc_main.c
@@ -52,7 +52,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/examples/zerocross/zerocross_main.c b/examples/zerocross/zerocross_main.c
index d2f49fa5b..2b6da5b62 100644
--- a/examples/zerocross/zerocross_main.c
+++ b/examples/zerocross/zerocross_main.c
@@ -32,7 +32,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/sensors/zerocross.h>
diff --git a/fsutils/flash_eraseall/flash_eraseall.c b/fsutils/flash_eraseall/flash_eraseall.c
index 2dde3a1ee..f7462c152 100644
--- a/fsutils/flash_eraseall/flash_eraseall.c
+++ b/fsutils/flash_eraseall/flash_eraseall.c
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>
#include "fsutils/flash_eraseall.h"
diff --git a/fsutils/flashtool/flashtool_main.c b/fsutils/flashtool/flashtool_main.c
index 8e4f288f3..b1f7f29a4 100644
--- a/fsutils/flashtool/flashtool_main.c
+++ b/fsutils/flashtool/flashtool_main.c
@@ -29,7 +29,7 @@
#include <stdlib.h>
#include <getopt.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <ctype.h>
diff --git a/fsutils/inifile/inifile.c b/fsutils/inifile/inifile.c
index 16c9da6af..8bb52326b 100644
--- a/fsutils/inifile/inifile.c
+++ b/fsutils/inifile/inifile.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "fsutils/inifile.h"
diff --git a/fsutils/ipcfg/ipcfg.c b/fsutils/ipcfg/ipcfg.c
index c1d4f9f9d..9f6deab5b 100644
--- a/fsutils/ipcfg/ipcfg.c
+++ b/fsutils/ipcfg/ipcfg.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "fsutils/ipcfg.h"
#include "ipcfg.h"
diff --git a/fsutils/ipcfg/ipcfg_binary.c b/fsutils/ipcfg/ipcfg_binary.c
index 0247a4e88..c12a7ada4 100644
--- a/fsutils/ipcfg/ipcfg_binary.c
+++ b/fsutils/ipcfg/ipcfg_binary.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "fsutils/ipcfg.h"
#include "ipcfg.h"
@@ -154,7 +154,7 @@ static int ipcfg_read_binary(int fd, FAR void *buffer, size_t nbytes)
* Input Parameters:
* fd - File descriptor of the open file to write to
* buffer - Location to write to
- * nbytes - Number of bytes to wrtie
+ * nbytes - Number of bytes to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -265,7 +265,7 @@ static int ipcfg_find_binary(int fd, sa_family_t af)
*
* Input Parameters:
* path - The full path to the IP configuration file
- * ipv4cfg - Location to read IPv4 configration to
+ * ipv4cfg - Location to read IPv4 configuration to
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -316,7 +316,7 @@ errout_with_fd:
*
* Input Parameters:
* path - The full path to the IP configuration file
- * ipv6cfg - Location to read IPv6 configration to
+ * ipv6cfg - Location to read IPv6 configuration to
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -367,7 +367,7 @@ errout_with_fd:
*
* Input Parameters:
* path - The full path to the IP configuration file
- * ipv4cfg - The IPv4 configration to write
+ * ipv4cfg - The IPv4 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -474,7 +474,7 @@ errout_with_fd:
*
* Input Parameters:
* path - The full path to the IP configuration file
- * ipv6cfg - The IPv6 configration to write
+ * ipv6cfg - The IPv6 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
diff --git a/fsutils/ipcfg/ipcfg_text.c b/fsutils/ipcfg/ipcfg_text.c
index 738bde088..f0e64f8e8 100644
--- a/fsutils/ipcfg/ipcfg_text.c
+++ b/fsutils/ipcfg/ipcfg_text.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <ctype.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
@@ -238,7 +238,7 @@ static int ipcfg_put_ipv6addr(FAR FILE *stream, FAR const char *variable,
*
* Input Parameters:
* stream - Stream of the open file to write to
- * ipv4cfg - The IPv4 configration to write
+ * ipv4cfg - The IPv4 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -278,7 +278,7 @@ static int ipcfg_write_ipv4(FAR FILE *stream,
*
* Input Parameters:
* stream - Stream of the open file to write to
- * ipv6cfg - The IPv6 configration to write
+ * ipv6cfg - The IPv6 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -322,7 +322,7 @@ static int ipcfg_write_ipv6(FAR FILE *stream,
* Input Parameters:
* path - The full path to the IP configuration file
* netdev - Network device name string
- * ipv4cfg - Location to read IPv4 configration to
+ * ipv4cfg - Location to read IPv4 configuration to
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -473,7 +473,7 @@ int ipcfg_read_text_ipv4(FAR const char *path, FAR const char *netdev,
* Input Parameters:
* path - The full path to the IP configuration file
* netdev - Network device name string
- * ipv6cfg - Location to read IPv6 configration to
+ * ipv6cfg - Location to read IPv6 configuration to
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -639,7 +639,7 @@ int ipcfg_read_text_ipv6(FAR const char *path, FAR const char *netdev,
* Input Parameters:
* path - The full path to the IP configuration file
* netdev - Network device name string
- * ipv4cfg - The IPv4 configration to write
+ * ipv4cfg - The IPv4 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
@@ -726,7 +726,7 @@ int ipcfg_write_text_ipv4(FAR const char *path, FAR const char *netdev,
* Input Parameters:
* path - The full path to the IP configuration file
* netdev - Network device name string
- * ipv6cfg - The IPv6 configration to write
+ * ipv6cfg - The IPv6 configuration to write
*
* Returned Value:
* Zero is returned on success; a negated errno value is returned on any
diff --git a/fsutils/mkfatfs/configfat.c b/fsutils/mkfatfs/configfat.c
index cb6d41da4..a3550cf7a 100644
--- a/fsutils/mkfatfs/configfat.c
+++ b/fsutils/mkfatfs/configfat.c
@@ -29,7 +29,7 @@
#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include "fsutils/mkfatfs.h"
diff --git a/fsutils/mkfatfs/mkfatfs.c b/fsutils/mkfatfs/mkfatfs.c
index 2bf7e56b8..8b2227e02 100644
--- a/fsutils/mkfatfs/mkfatfs.c
+++ b/fsutils/mkfatfs/mkfatfs.c
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <unistd.h>
diff --git a/fsutils/mkfatfs/writefat.c b/fsutils/mkfatfs/writefat.c
index d88e0bbb7..01837d05c 100644
--- a/fsutils/mkfatfs/writefat.c
+++ b/fsutils/mkfatfs/writefat.c
@@ -31,7 +31,7 @@
#include <stdint.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/fs/fat.h>
@@ -206,7 +206,7 @@ static inline void mkfatfs_initmbr(FAR struct fat_format_s *fmt,
/* The following fields are only valid for FAT12/16 */
- /* 1@36: Drive number for MSDOS bootstrap -- left zero */
+ /* 1@36: Drive number for MS-DOS bootstrap -- left zero */
/* 1@37: Reserved (zero) */
@@ -268,7 +268,7 @@ static inline void mkfatfs_initmbr(FAR struct fat_format_s *fmt,
/* 12@52: Reserved (zero) */
- /* 1@64: Drive number for MSDOS bootstrap -- left zero */
+ /* 1@64: Drive number for MS-DOS bootstrap -- left zero */
/* 1@65: Reserved (zero) */
diff --git a/fsutils/mkgpt/mkgpt.c b/fsutils/mkgpt/mkgpt.c
index e7621fab0..994902067 100644
--- a/fsutils/mkgpt/mkgpt.c
+++ b/fsutils/mkgpt/mkgpt.c
@@ -32,7 +32,7 @@
#include <stdint.h>
#include <unistd.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
diff --git a/graphics/ft80x/ft80x.h b/graphics/ft80x/ft80x.h
index 6462f1ce1..64254691c 100644
--- a/graphics/ft80x/ft80x.h
+++ b/graphics/ft80x/ft80x.h
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <stdint.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_GRAPHICS_FT80X
diff --git a/graphics/input/generator/input_gen_ctx.c b/graphics/input/generator/input_gen_ctx.c
index 6449979fd..ea415e020 100644
--- a/graphics/input/generator/input_gen_ctx.c
+++ b/graphics/input/generator/input_gen_ctx.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <stdlib.h>
#include <strings.h>
diff --git a/graphics/input/generator/input_gen_dev.c b/graphics/input/generator/input_gen_dev.c
index 117946d9c..9c921107c 100644
--- a/graphics/input/generator/input_gen_dev.c
+++ b/graphics/input/generator/input_gen_dev.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/file.h>
#include <sys/ioctl.h>
diff --git a/graphics/input/generator/input_gen_event.c b/graphics/input/generator/input_gen_event.c
index 64637bb85..51219d51b 100644
--- a/graphics/input/generator/input_gen_event.c
+++ b/graphics/input/generator/input_gen_event.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <unistd.h>
diff --git a/graphics/nxwidgets/UnitTests/CButton/cbutton_main.cxx b/graphics/nxwidgets/UnitTests/CButton/cbutton_main.cxx
index 472348ba5..663048593 100644
--- a/graphics/nxwidgets/UnitTests/CButton/cbutton_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CButton/cbutton_main.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx
index 773f0435e..c7628b41a 100644
--- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx
+++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx
index 8b1749d88..608e77929 100644
--- a/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx
+++ b/graphics/nxwidgets/UnitTests/CButton/cbuttontest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarray_main.cxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarray_main.cxx
index 8af3de7d1..51a09a16c 100644
--- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarray_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarray_main.cxx
@@ -31,7 +31,7 @@
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx
index a19c6f880..e84caf02f 100644
--- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx
+++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx
index a13783bd5..0d69a2838 100644
--- a/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx
+++ b/graphics/nxwidgets/UnitTests/CButtonArray/cbuttonarraytest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckbox_main.cxx b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckbox_main.cxx
index 8719611ba..087e31499 100644
--- a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckbox_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckbox_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.cxx b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.cxx
index 1ff5a0a53..8f8398324 100644
--- a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.cxx
+++ b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.hxx b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.hxx
index 1bd72dba5..205884f47 100644
--- a/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.hxx
+++ b/graphics/nxwidgets/UnitTests/CCheckBox/ccheckboxtest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbutton_main.cxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbutton_main.cxx
index ec673c5f2..01081b38e 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbutton_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbutton_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx
index f46468626..acee748fa 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx
index d7593734f..89884872f 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphButton/cglyphbuttontest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/param.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontal_main.cxx b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontal_main.cxx
index e40c78be7..59546fa73 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontal_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontal_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.cxx b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.cxx
index 2809bfb26..a9e38f00a 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.hxx b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.hxx
index c3fd43ecc..0d563eecb 100644
--- a/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CGlyphSliderHorizontal/cglyphsliderhorizontaltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CImage/cimage_main.cxx b/graphics/nxwidgets/UnitTests/CImage/cimage_main.cxx
index 3423d6e74..339627a74 100644
--- a/graphics/nxwidgets/UnitTests/CImage/cimage_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CImage/cimage_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CImage/cimagetest.cxx b/graphics/nxwidgets/UnitTests/CImage/cimagetest.cxx
index 2472f19f2..9eedd8aa4 100644
--- a/graphics/nxwidgets/UnitTests/CImage/cimagetest.cxx
+++ b/graphics/nxwidgets/UnitTests/CImage/cimagetest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CImage/cimagetest.hxx b/graphics/nxwidgets/UnitTests/CImage/cimagetest.hxx
index 34568a5f4..99970b6f1 100644
--- a/graphics/nxwidgets/UnitTests/CImage/cimagetest.hxx
+++ b/graphics/nxwidgets/UnitTests/CImage/cimagetest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypad_main.cxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypad_main.cxx
index bfd5dfd2c..9e9d4b269 100644
--- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypad_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypad_main.cxx
@@ -31,7 +31,7 @@
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx
index 64cf7c366..a51555e44 100644
--- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx
+++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx
index f566d8bcd..783fb0b52 100644
--- a/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx
+++ b/graphics/nxwidgets/UnitTests/CKeypad/ckeypadtest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLabel/clabel_main.cxx b/graphics/nxwidgets/UnitTests/CLabel/clabel_main.cxx
index bed815541..c822abf1a 100644
--- a/graphics/nxwidgets/UnitTests/CLabel/clabel_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CLabel/clabel_main.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLabel/clabeltest.cxx b/graphics/nxwidgets/UnitTests/CLabel/clabeltest.cxx
index 1851674ad..1b439125f 100644
--- a/graphics/nxwidgets/UnitTests/CLabel/clabeltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CLabel/clabeltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CLabel/clabeltest.hxx b/graphics/nxwidgets/UnitTests/CLabel/clabeltest.hxx
index 57ccc1f0d..317a08bec 100644
--- a/graphics/nxwidgets/UnitTests/CLabel/clabeltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CLabel/clabeltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbutton_main.cxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbutton_main.cxx
index ca0310ae2..0663f74c3 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbutton_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbutton_main.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx
index 58fe9b6a1..a8dbe2603 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx
index 71946d325..641ccb9ec 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButton/clatchbuttontest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarray_main.cxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarray_main.cxx
index fd6dcbeb0..a1e713660 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarray_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarray_main.cxx
@@ -31,7 +31,7 @@
#include <cstdlib>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx
index 3da02db99..146f9172a 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx
index 212d512a7..9ebfed210 100644
--- a/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx
+++ b/graphics/nxwidgets/UnitTests/CLatchButtonArray/clatchbuttonarraytest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CListBox/clistbox_main.cxx b/graphics/nxwidgets/UnitTests/CListBox/clistbox_main.cxx
index 45864f1e5..c9bb459ed 100644
--- a/graphics/nxwidgets/UnitTests/CListBox/clistbox_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CListBox/clistbox_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.cxx b/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.cxx
index 7bd3836de..b81fff628 100644
--- a/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.cxx
+++ b/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.hxx b/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.hxx
index 452240dc9..7171c26cd 100644
--- a/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.hxx
+++ b/graphics/nxwidgets/UnitTests/CListBox/clistboxtest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbar_main.cxx b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbar_main.cxx
index d5c5d4b9f..3df02715f 100644
--- a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbar_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbar_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.cxx b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.cxx
index 11ad6bb07..537774ea8 100644
--- a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.cxx
+++ b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.hxx b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.hxx
index dd8dcf103..657da3d8e 100644
--- a/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.hxx
+++ b/graphics/nxwidgets/UnitTests/CProgressBar/cprogressbartest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobutton_main.cxx b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobutton_main.cxx
index fd0c13b40..b093382a1 100644
--- a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobutton_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobutton_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx
index 683dc02dc..5d0be7bb5 100644
--- a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx
+++ b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.hxx b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.hxx
index fc8d7ee29..8a5c1f0df 100644
--- a/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.hxx
+++ b/graphics/nxwidgets/UnitTests/CRadioButton/cradiobuttontest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontal_main.cxx b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontal_main.cxx
index 51ea0e6e2..2429a75d1 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontal_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontal_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.cxx b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.cxx
index e59f0fe3b..21501c125 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.hxx b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.hxx
index c8b31b392..b53d318d5 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarHorizontal/cscrollbarhorizontaltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarvertical_main.cxx b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarvertical_main.cxx
index 04664b08b..9497febe5 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarvertical_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarvertical_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.cxx b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.cxx
index bbf21f2c2..8770f5df4 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.hxx b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.hxx
index 159fb3bf2..fc062fed2 100644
--- a/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CScrollbarVertical/cscrollbarverticaltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontal_main.cxx b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontal_main.cxx
index 9b8f21b54..6c122a20b 100644
--- a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontal_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontal_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.cxx b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.cxx
index 8a9e19496..5dd3880f7 100644
--- a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.hxx b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.hxx
index 538af2daf..9f9297399 100644
--- a/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CSliderHorizonal/csliderhorizontaltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderVertical/cslidervertical_main.cxx b/graphics/nxwidgets/UnitTests/CSliderVertical/cslidervertical_main.cxx
index 40872745c..2d109b35a 100644
--- a/graphics/nxwidgets/UnitTests/CSliderVertical/cslidervertical_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CSliderVertical/cslidervertical_main.cxx
@@ -32,7 +32,7 @@
#include <cstring>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.cxx b/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.cxx
index efad3275e..aa2241764 100644
--- a/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.cxx
+++ b/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.hxx b/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.hxx
index 7bad5e81d..0bac9b3d6 100644
--- a/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.hxx
+++ b/graphics/nxwidgets/UnitTests/CSliderVertical/csliderverticaltest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CTextBox/ctextbox_main.cxx b/graphics/nxwidgets/UnitTests/CTextBox/ctextbox_main.cxx
index 92de3dd85..ef9a5e362 100644
--- a/graphics/nxwidgets/UnitTests/CTextBox/ctextbox_main.cxx
+++ b/graphics/nxwidgets/UnitTests/CTextBox/ctextbox_main.cxx
@@ -29,7 +29,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.cxx b/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.cxx
index 4d0fad790..d34d937b9 100644
--- a/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.cxx
+++ b/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.cxx
@@ -30,7 +30,7 @@
#include <cstdio>
#include <cerrno>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxfonts.h>
diff --git a/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx b/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx
index 427824422..21e994d74 100644
--- a/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx
+++ b/graphics/nxwidgets/UnitTests/CTextBox/ctextboxtest.hxx
@@ -32,7 +32,7 @@
#include <nuttx/init.h>
#include <cstdio>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/nxwidgets/src/ccallback.cxx b/graphics/nxwidgets/src/ccallback.cxx
index 510f55161..f07deaf93 100644
--- a/graphics/nxwidgets/src/ccallback.cxx
+++ b/graphics/nxwidgets/src/ccallback.cxx
@@ -34,7 +34,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <cassert>
#include <cerrno>
@@ -308,7 +308,7 @@ void CCallback::newKeyboardEvent(NXHANDLE hwnd, uint8_t nCh,
* NXEVENT_SYCNCHED - Synchronization handshake
*
* This completes the handshake started by nx_synch(). nx_synch()
- * sends a syncrhonization messages to the NX server which responds
+ * sends a synchronization message to the NX server which responds
* with this event. The sleeping client is awakened and continues
* graphics processing, completing the handshake.
*
diff --git a/graphics/nxwidgets/src/cgraphicsport.cxx b/graphics/nxwidgets/src/cgraphicsport.cxx
index 2e299162d..ffe56033e 100644
--- a/graphics/nxwidgets/src/cgraphicsport.cxx
+++ b/graphics/nxwidgets/src/cgraphicsport.cxx
@@ -64,7 +64,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nxglib.h>
#include <nuttx/video/rgbcolors.h>
diff --git a/graphics/nxwidgets/src/cimage.cxx b/graphics/nxwidgets/src/cimage.cxx
index a500c3b4e..337b7fea4 100644
--- a/graphics/nxwidgets/src/cimage.cxx
+++ b/graphics/nxwidgets/src/cimage.cxx
@@ -62,7 +62,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nxglib.h>
diff --git a/graphics/nxwidgets/src/clabelgrid.cxx b/graphics/nxwidgets/src/clabelgrid.cxx
index 6302f4c6a..175535bba 100644
--- a/graphics/nxwidgets/src/clabelgrid.cxx
+++ b/graphics/nxwidgets/src/clabelgrid.cxx
@@ -59,7 +59,7 @@
****************************************************************************/
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/clabelgrid.hxx"
#include "graphics/nxwidgets/clabel.hxx"
diff --git a/graphics/nxwidgets/src/cnumericedit.cxx b/graphics/nxwidgets/src/cnumericedit.cxx
index 770f727c7..22556c7d8 100644
--- a/graphics/nxwidgets/src/cnumericedit.cxx
+++ b/graphics/nxwidgets/src/cnumericedit.cxx
@@ -66,7 +66,7 @@
#include <limits.h>
#include <nuttx/nx/nxglib.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/cnumericedit.hxx"
#include "graphics/nxwidgets/cbutton.hxx"
diff --git a/graphics/nxwidgets/src/cnxserver.cxx b/graphics/nxwidgets/src/cnxserver.cxx
index 67ad93332..60f841833 100644
--- a/graphics/nxwidgets/src/cnxserver.cxx
+++ b/graphics/nxwidgets/src/cnxserver.cxx
@@ -37,7 +37,7 @@
#include <cerrno>
#include <sched.h>
#include <pthread.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/board.h>
diff --git a/graphics/nxwidgets/src/cnxtimer.cxx b/graphics/nxwidgets/src/cnxtimer.cxx
index 81ba0da64..dd6be5101 100644
--- a/graphics/nxwidgets/src/cnxtimer.cxx
+++ b/graphics/nxwidgets/src/cnxtimer.cxx
@@ -64,7 +64,7 @@
#include <stdbool.h>
#include <cstring>
#include <ctime>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/clock.h>
diff --git a/graphics/nxwidgets/src/cscaledbitmap.cxx b/graphics/nxwidgets/src/cscaledbitmap.cxx
index ec46ca5c4..65f1a372f 100644
--- a/graphics/nxwidgets/src/cscaledbitmap.cxx
+++ b/graphics/nxwidgets/src/cscaledbitmap.cxx
@@ -29,7 +29,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <cstring>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nxglib.h>
@@ -64,7 +64,7 @@ CScaledBitmap::CScaledBitmap(IBitmap *bitmap, struct nxgl_size_s &newSize)
m_xScale = itob16((uint32_t)m_bitmap->getWidth()) / newSize.w;
// Similarly, yScale will be used to convert a request Y position to a Y
- // positionin the contained bitmap:
+ // position in the contained bitmap:
//
// yImage = yRequested * oldHeight / newHeight
// = yRequested * yScale
diff --git a/graphics/nxwidgets/src/cscrollingpanel.cxx b/graphics/nxwidgets/src/cscrollingpanel.cxx
index d369d42fc..80f51c87c 100644
--- a/graphics/nxwidgets/src/cscrollingpanel.cxx
+++ b/graphics/nxwidgets/src/cscrollingpanel.cxx
@@ -62,7 +62,7 @@
#include <stdint.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/cwidgetcontrol.hxx"
#include "graphics/nxwidgets/cscrollingpanel.hxx"
diff --git a/graphics/nxwidgets/src/cwidgetcontrol.cxx b/graphics/nxwidgets/src/cwidgetcontrol.cxx
index 921b05412..3107d7729 100644
--- a/graphics/nxwidgets/src/cwidgetcontrol.cxx
+++ b/graphics/nxwidgets/src/cwidgetcontrol.cxx
@@ -31,7 +31,7 @@
#include <cstring>
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sched.h>
#include "graphics/nxwidgets/nxconfig.hxx"
diff --git a/graphics/nxwidgets/src/singletons.cxx b/graphics/nxwidgets/src/singletons.cxx
index e6c4da73e..a6e44797c 100644
--- a/graphics/nxwidgets/src/singletons.cxx
+++ b/graphics/nxwidgets/src/singletons.cxx
@@ -64,7 +64,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <sched.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/nxconfig.hxx"
#include "graphics/nxwidgets/cnxserver.hxx"
diff --git a/graphics/nxwm/src/ccalibration.cxx b/graphics/nxwm/src/ccalibration.cxx
index 21adb2183..262a9d567 100644
--- a/graphics/nxwm/src/ccalibration.cxx
+++ b/graphics/nxwm/src/ccalibration.cxx
@@ -30,7 +30,7 @@
#include <sched.h>
#include <limits.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#ifdef CONFIG_NXWM_TOUCHSCREEN_CONFIGDATA
diff --git a/graphics/nxwm/src/chexcalculator.cxx b/graphics/nxwm/src/chexcalculator.cxx
index e5ab0d9e8..f2cf62018 100644
--- a/graphics/nxwm/src/chexcalculator.cxx
+++ b/graphics/nxwm/src/chexcalculator.cxx
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <cstdio>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/cwidgetcontrol.hxx"
diff --git a/graphics/nxwm/src/ckeyboard.cxx b/graphics/nxwm/src/ckeyboard.cxx
index 20dcc44cc..7afb0b0ae 100644
--- a/graphics/nxwm/src/ckeyboard.cxx
+++ b/graphics/nxwm/src/ckeyboard.cxx
@@ -32,7 +32,7 @@
#include <sched.h>
#include <pthread.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include "graphics/nxwm/nxwmconfig.hxx"
@@ -188,7 +188,7 @@ int CKeyboard::open(void)
if (errcode == ENOENT || errcode == ENODEV)
{
- // REVIST: Can we inject a constant string here to let the
+ // REVISIT: Can we inject a constant string here to let the
// user know that we are waiting for a USB keyboard to be
// connected?
diff --git a/graphics/nxwm/src/cmediaplayer.cxx b/graphics/nxwm/src/cmediaplayer.cxx
index bcfb95718..8561eb469 100644
--- a/graphics/nxwm/src/cmediaplayer.cxx
+++ b/graphics/nxwm/src/cmediaplayer.cxx
@@ -33,7 +33,7 @@
#include <cerrno>
#include <strings.h>
#include <dirent.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "system/nxplayer.h"
#include <nuttx/audio/audio.h>
diff --git a/graphics/nxwm/src/cnxterm.cxx b/graphics/nxwm/src/cnxterm.cxx
index 0c4d20455..40bc5997b 100644
--- a/graphics/nxwm/src/cnxterm.cxx
+++ b/graphics/nxwm/src/cnxterm.cxx
@@ -35,7 +35,7 @@
#include <semaphore.h>
#include <sched.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include "nshlib/nshlib.h"
diff --git a/graphics/nxwm/src/ctaskbar.cxx b/graphics/nxwm/src/ctaskbar.cxx
index d66d36850..7160b93d9 100644
--- a/graphics/nxwm/src/ctaskbar.cxx
+++ b/graphics/nxwm/src/ctaskbar.cxx
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nxglib.h>
@@ -617,7 +617,7 @@ bool CTaskbar::maximizeApplication(IApplication *app)
/**
* Minimize an application by moving its window to the bottom of the and
- * redrawing the next visible appliation.
+ * redrawing the next visible application.
*
* @param app. The new application to add to the task bar
* @return true on success
diff --git a/graphics/nxwm/src/ctouchscreen.cxx b/graphics/nxwm/src/ctouchscreen.cxx
index bbebc0f7a..b7807c710 100644
--- a/graphics/nxwm/src/ctouchscreen.cxx
+++ b/graphics/nxwm/src/ctouchscreen.cxx
@@ -34,7 +34,7 @@
#include <sched.h>
#include <pthread.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/nx/nxglib.h>
@@ -181,7 +181,7 @@ void CTouchscreen::setCalibrationData(const struct SCalibrationData &caldata)
m_calibData = caldata;
// Note that we have calibration data. Data will now be scaled and forwarded
- // to NX (unless we are still in cpature mode)
+ // to NX (unless we are still in capture mode)
m_calibrated = true;
@@ -205,7 +205,7 @@ bool CTouchscreen::waitRawTouchData(struct touch_sample_s *touch)
{
_info("Capturing touch input\n");
- // Setup to cpature raw data into the user provided buffer
+ // Setup to capture raw data into the user provided buffer
sched_lock();
m_touch = touch;
diff --git a/graphics/nxwm/src/cwindowmessenger.cxx b/graphics/nxwm/src/cwindowmessenger.cxx
index 8761e4799..92a2ba91a 100644
--- a/graphics/nxwm/src/cwindowmessenger.cxx
+++ b/graphics/nxwm/src/cwindowmessenger.cxx
@@ -28,7 +28,7 @@
#include <cerrno>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include "graphics/nxwm/nxwmconfig.hxx"
diff --git a/graphics/slcd/cslcd.cxx b/graphics/slcd/cslcd.cxx
index 8f7320e1e..f732b8e42 100644
--- a/graphics/slcd/cslcd.cxx
+++ b/graphics/slcd/cslcd.cxx
@@ -25,7 +25,7 @@
/////////////////////////////////////////////////////////////////////////////
#include <fixedmath.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nx.h>
diff --git a/graphics/tiff/tiff_addstrip.c b/graphics/tiff/tiff_addstrip.c
index ff4a9d598..5db952088 100644
--- a/graphics/tiff/tiff_addstrip.c
+++ b/graphics/tiff/tiff_addstrip.c
@@ -28,7 +28,7 @@
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/tiff.h"
diff --git a/graphics/tiff/tiff_finalize.c b/graphics/tiff/tiff_finalize.c
index 2ad01a06e..da49343c9 100644
--- a/graphics/tiff/tiff_finalize.c
+++ b/graphics/tiff/tiff_finalize.c
@@ -29,7 +29,7 @@
#include <unistd.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/tiff.h"
diff --git a/graphics/tiff/tiff_initialize.c b/graphics/tiff/tiff_initialize.c
index b6de8408d..263f650cf 100644
--- a/graphics/tiff/tiff_initialize.c
+++ b/graphics/tiff/tiff_initialize.c
@@ -32,7 +32,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/tiff.h"
@@ -68,7 +68,7 @@
* 172 XResolution Hard-coded to 300/1
* 180 YResolution Hard-coded to 300/1
* 188 "NuttX" Length = 6 (including NUL terminator)
- * 194 "YYYY:MM:DD HH:MM:SS" Length = 20 (ncluding NUL terminator)
+ * 194 "YYYY:MM:DD HH:MM:SS" Length = 20 (including NUL terminator)
* 214 [2 bytes padding]
* 216 StripByteCounts Beginning of strip byte counts
* xxx StripOffsets Beginning of strip offsets
@@ -121,7 +121,7 @@
* 184 XResolution Hard-coded to 300/1
* 192 YResolution Hard-coded to 300/1
* 200 "NuttX" Length = 6 (including NUL terminator)
- * 206 "YYYY:MM:DD HH:MM:SS" Length = 20 (ncluding NUL terminator)
+ * 206 "YYYY:MM:DD HH:MM:SS" Length = 20 (including NUL terminator)
* 226 [2 bytes padding]
* 228 StripByteCounts Beginning of strip byte counts
* xxx StripOffsets Beginning of strip offsets
@@ -170,7 +170,7 @@
* 212 BitsPerSample 8, 8, 8
* 218 [2 bytes padding]
* 220 "NuttX" Length = 6 (including NUL terminator)
- * 226 "YYYY:MM:DD HH:MM:SS" Length = 20 (ncluding NUL terminator)
+ * 226 "YYYY:MM:DD HH:MM:SS" Length = 20 (including NUL terminator)
* 246 [2 bytes padding]
* 248 StripByteCounts Beginning of strip byte counts
* xxx StripOffsets Beginning of strip offsets
@@ -410,7 +410,7 @@ static int tiff_datetime(FAR char *timbuf, unsigned int buflen)
gmtime_r((FAR const time_t*)&ts.tv_sec, &tm);
- /* Comvert the current time in the TIFF format */
+ /* Convert the current time to TIFF format */
strftime(timbuf, buflen, TIFF_DATETIME_FORMAT, &tm);
return OK;
diff --git a/graphics/tiff/tiff_utils.c b/graphics/tiff/tiff_utils.c
index c16f7b3e3..17e72689b 100644
--- a/graphics/tiff/tiff_utils.c
+++ b/graphics/tiff/tiff_utils.c
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/tiff.h"
@@ -335,7 +335,7 @@ int tiff_putstring(int fd, FAR const char *string, int len)
* Name: tiff_wordalign
*
* Description:
- * Pad a file with zeros as necessary to achieve word alignament.
+ * Pad a file with zeros as necessary to achieve word alignment.
*
* Input Parameters:
* fd - File descriptor to be used.
diff --git a/graphics/twm4nx/apps/ccalibration.cxx b/graphics/twm4nx/apps/ccalibration.cxx
index 7eab8067a..40317cdb6 100644
--- a/graphics/twm4nx/apps/ccalibration.cxx
+++ b/graphics/twm4nx/apps/ccalibration.cxx
@@ -32,7 +32,7 @@
#include <limits.h>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sched.h>
#include <unistd.h>
diff --git a/graphics/twm4nx/apps/cclock.cxx b/graphics/twm4nx/apps/cclock.cxx
index 55c6c3e34..e9d3b55bd 100644
--- a/graphics/twm4nx/apps/cclock.cxx
+++ b/graphics/twm4nx/apps/cclock.cxx
@@ -31,7 +31,7 @@
#include <cassert>
#include <semaphore.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sched.h>
#include <unistd.h>
diff --git a/graphics/twm4nx/apps/cnxterm.cxx b/graphics/twm4nx/apps/cnxterm.cxx
index 1918775a8..a36edc4db 100644
--- a/graphics/twm4nx/apps/cnxterm.cxx
+++ b/graphics/twm4nx/apps/cnxterm.cxx
@@ -34,7 +34,7 @@
#include <sys/boardctl.h>
#include <semaphore.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include "nshlib/nshlib.h"
diff --git a/graphics/twm4nx/src/cmainmenu.cxx b/graphics/twm4nx/src/cmainmenu.cxx
index 2c2034f3b..e2b9c1992 100644
--- a/graphics/twm4nx/src/cmainmenu.cxx
+++ b/graphics/twm4nx/src/cmainmenu.cxx
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <graphics/nxwidgets/cnxstring.hxx>
diff --git a/include/graphics/nxwidgets/cscaledbitmap.hxx b/include/graphics/nxwidgets/cscaledbitmap.hxx
index b2cc5f577..f175dd6ee 100644
--- a/include/graphics/nxwidgets/cscaledbitmap.hxx
+++ b/include/graphics/nxwidgets/cscaledbitmap.hxx
@@ -32,7 +32,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <fixedmath.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/video/rgbcolors.h>
#include <nuttx/nx/nxglib.h>
diff --git a/include/graphics/nxwm/cstartwindow.hxx b/include/graphics/nxwm/cstartwindow.hxx
index fb4fb2acb..2c1d0178a 100644
--- a/include/graphics/nxwm/cstartwindow.hxx
+++ b/include/graphics/nxwm/cstartwindow.hxx
@@ -29,7 +29,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/tnxarray.hxx"
diff --git a/include/graphics/twm4nx/apps/calib_config.hxx b/include/graphics/twm4nx/apps/calib_config.hxx
index 85abc746a..ffcdfc6a7 100644
--- a/include/graphics/twm4nx/apps/calib_config.hxx
+++ b/include/graphics/twm4nx/apps/calib_config.hxx
@@ -28,7 +28,7 @@
/////////////////////////////////////////////////////////////////////////////
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxwidgets/nxconfig.hxx"
#include "graphics/twm4nx/twm4nx_config.hxx"
diff --git a/include/graphics/twm4nx/apps/clock_config.hxx b/include/graphics/twm4nx/apps/clock_config.hxx
index b6c059060..2e2db213c 100644
--- a/include/graphics/twm4nx/apps/clock_config.hxx
+++ b/include/graphics/twm4nx/apps/clock_config.hxx
@@ -28,7 +28,7 @@
/////////////////////////////////////////////////////////////////////////////
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxglyphs.hxx"
#include "graphics/nxwidgets/crlepalettebitmap.hxx"
diff --git a/include/graphics/twm4nx/apps/nxterm_config.hxx b/include/graphics/twm4nx/apps/nxterm_config.hxx
index e90be9b90..2d0661e9e 100644
--- a/include/graphics/twm4nx/apps/nxterm_config.hxx
+++ b/include/graphics/twm4nx/apps/nxterm_config.hxx
@@ -28,7 +28,7 @@
/////////////////////////////////////////////////////////////////////////////
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxglyphs.hxx"
#include "graphics/nxwidgets/crlepalettebitmap.hxx"
diff --git a/include/graphics/twm4nx/ciconwidget.hxx b/include/graphics/twm4nx/ciconwidget.hxx
index e96b69ca8..e9152fc19 100644
--- a/include/graphics/twm4nx/ciconwidget.hxx
+++ b/include/graphics/twm4nx/ciconwidget.hxx
@@ -32,7 +32,7 @@
#include <cstdint>
#include <cstdbool>
#include <mqueue.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/nx/nxglib.h>
#include <nuttx/nx/nx.h>
diff --git a/include/graphics/twm4nx/twm4nx_config.hxx b/include/graphics/twm4nx/twm4nx_config.hxx
index 679cc887e..60b34d09d 100644
--- a/include/graphics/twm4nx/twm4nx_config.hxx
+++ b/include/graphics/twm4nx/twm4nx_config.hxx
@@ -28,7 +28,7 @@
/////////////////////////////////////////////////////////////////////////////
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "graphics/nxglyphs.hxx"
#include "graphics/nxwidgets/nxconfig.hxx"
diff --git a/include/netutils/cmux.h b/include/netutils/cmux.h
index 42f0d5ca0..8bbf2e1f0 100644
--- a/include/netutils/cmux.h
+++ b/include/netutils/cmux.h
@@ -29,7 +29,7 @@
#include <sys/time.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
/****************************************************************************
diff --git a/industry/foc/fixed16/foc_cordic.c b/industry/foc/fixed16/foc_cordic.c
index fdd4cc059..22af88a46 100644
--- a/industry/foc/fixed16/foc_cordic.c
+++ b/industry/foc/fixed16/foc_cordic.c
@@ -30,7 +30,7 @@
#include <assert.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/math/cordic.h>
diff --git a/industry/foc/float/foc_cordic.c b/industry/foc/float/foc_cordic.c
index f53c05674..d4fe510ff 100644
--- a/industry/foc/float/foc_cordic.c
+++ b/industry/foc/float/foc_cordic.c
@@ -30,7 +30,7 @@
#include <assert.h>
#include <fcntl.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/math/cordic.h>
diff --git a/interpreters/python/python_wrapper.c b/interpreters/python/python_wrapper.c
index 1eb1d3cc3..6617bae98 100644
--- a/interpreters/python/python_wrapper.c
+++ b/interpreters/python/python_wrapper.c
@@ -41,7 +41,7 @@
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/drivers/ramdisk.h>
diff --git a/logging/nxscope/nxscope.c b/logging/nxscope/nxscope.c
index f919bf62c..094395dd8 100644
--- a/logging/nxscope/nxscope.c
+++ b/logging/nxscope/nxscope.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
@@ -150,7 +150,7 @@ static int nxscope_chinfo_send(FAR struct nxscope_s *s, uint8_t ch)
namelen = strnlen(s->chinfo[ch].name, CHAN_NAMELEN_MAX);
memcpy(&data[tmp], s->chinfo[ch].name, namelen);
- /* Treminate name wit a null-character */
+ /* Terminate name with a null character */
txlen = tmp + namelen + 1;
data[txlen - 1] = '\0';
diff --git a/logging/nxscope/nxscope_chan.c b/logging/nxscope/nxscope_chan.c
index 10c30ad25..a68451f47 100644
--- a/logging/nxscope/nxscope_chan.c
+++ b/logging/nxscope/nxscope_chan.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <endian.h>
#include <errno.h>
#include <string.h>
diff --git a/logging/nxscope/nxscope_idummy.c b/logging/nxscope/nxscope_idummy.c
index 8615748af..f139ce4dd 100644
--- a/logging/nxscope/nxscope_idummy.c
+++ b/logging/nxscope/nxscope_idummy.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
diff --git a/logging/nxscope/nxscope_internals.c b/logging/nxscope/nxscope_internals.c
index 43ffdd610..b001b4187 100644
--- a/logging/nxscope/nxscope_internals.c
+++ b/logging/nxscope/nxscope_internals.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/logging/nxscope/nxscope_iser.c b/logging/nxscope/nxscope_iser.c
index b1722042b..492617723 100644
--- a/logging/nxscope/nxscope_iser.c
+++ b/logging/nxscope/nxscope_iser.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/logging/nxscope/nxscope_iudp.c b/logging/nxscope/nxscope_iudp.c
index 07aae7711..5a5e1eed0 100644
--- a/logging/nxscope/nxscope_iudp.c
+++ b/logging/nxscope/nxscope_iudp.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
diff --git a/logging/nxscope/nxscope_pser.c b/logging/nxscope/nxscope_pser.c
index 2d0917d51..2f8d5ad41 100644
--- a/logging/nxscope/nxscope_pser.c
+++ b/logging/nxscope/nxscope_pser.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <endian.h>
#include <errno.h>
#include <string.h>
@@ -274,7 +274,7 @@ int nxscope_proto_ser_init(FAR struct nxscope_proto_s *proto, FAR void *cfg)
{
DEBUGASSERT(proto);
- /* cfg argument not used, but keept here for compatibility with
+ /* cfg argument not used, but kept here for compatibility with
* future protocol implementations.
*/
diff --git a/lte/alt1250/alt1250_dbg.h b/lte/alt1250/alt1250_dbg.h
index 82b9bb27a..0034bea82 100644
--- a/lte/alt1250/alt1250_dbg.h
+++ b/lte/alt1250/alt1250_dbg.h
@@ -29,7 +29,7 @@
#include <nuttx/config.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/lte/lapi/src/lapi_dbg.h b/lte/lapi/src/lapi_dbg.h
index 403847653..ebe02523a 100644
--- a/lte/lapi/src/lapi_dbg.h
+++ b/lte/lapi/src/lapi_dbg.h
@@ -27,7 +27,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/netutils/chat/chat.c b/netutils/chat/chat.c
index 3849631df..c1af84ae8 100644
--- a/netutils/chat/chat.c
+++ b/netutils/chat/chat.c
@@ -45,7 +45,7 @@
#include <sys/stat.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <poll.h>
#include <stdio.h>
diff --git a/netutils/cmux/cmux.h b/netutils/cmux/cmux.h
index 470aacfa4..7758f83b5 100644
--- a/netutils/cmux/cmux.h
+++ b/netutils/cmux/cmux.h
@@ -29,7 +29,7 @@
#include <sys/time.h>
#include <stdbool.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#define CMUX_BIT0 (0)
diff --git a/netutils/dhcp6c/dhcp6c.c b/netutils/dhcp6c/dhcp6c.c
index 5418c0a98..3989bee0c 100644
--- a/netutils/dhcp6c/dhcp6c.c
+++ b/netutils/dhcp6c/dhcp6c.c
@@ -36,7 +36,7 @@
#include <resolv.h>
#include <string.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
diff --git a/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c
index 003d7d8cb..e899b6930 100644
--- a/netutils/dhcpc/dhcpc.c
+++ b/netutils/dhcpc/dhcpc.c
@@ -48,7 +48,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <pthread.h>
#include <arpa/inet.h>
diff --git a/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c
index a382709a2..a166e9123 100644
--- a/netutils/dhcpd/dhcpd.c
+++ b/netutils/dhcpd/dhcpd.c
@@ -40,7 +40,7 @@
# define OK (0)
#else
# include <nuttx/config.h> /* NuttX configuration */
-# include <debug.h> /* For nerr, info */
+# include <nuttx/debug.h> /* For nerr, info */
# include <nuttx/compiler.h> /* For CONFIG_CPP_HAVE_WARNING */
# include "netutils/dhcpd.h" /* Advertised DHCPD APIs */
#endif
diff --git a/netutils/discover/discover.c b/netutils/discover/discover.c
index 6bb3f675b..ba11fbe87 100644
--- a/netutils/discover/discover.c
+++ b/netutils/discover/discover.c
@@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <sched.h>
#include <stdint.h>
diff --git a/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c
index 51de514b7..051dd15fc 100644
--- a/netutils/esp8266/esp8266.c
+++ b/netutils/esp8266/esp8266.c
@@ -39,7 +39,7 @@
#include <termios.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <netdb.h>
diff --git a/netutils/ftpc/ftpc_chmod.c b/netutils/ftpc/ftpc_chmod.c
index 5710b7c8b..d9b490b0a 100644
--- a/netutils/ftpc/ftpc_chmod.c
+++ b/netutils/ftpc/ftpc_chmod.c
@@ -26,7 +26,7 @@
#include "ftpc_config.h"
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
#include "ftpc_internal.h"
diff --git a/netutils/ftpc/ftpc_cmd.c b/netutils/ftpc/ftpc_cmd.c
index b6b7556b5..1e3ff9ea8 100644
--- a/netutils/ftpc/ftpc_cmd.c
+++ b/netutils/ftpc/ftpc_cmd.c
@@ -30,7 +30,7 @@
#include <strings.h>
#include <stdarg.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "ftpc_internal.h"
diff --git a/netutils/ftpc/ftpc_connect.c b/netutils/ftpc/ftpc_connect.c
index 8624f4905..61defa614 100644
--- a/netutils/ftpc/ftpc_connect.c
+++ b/netutils/ftpc/ftpc_connect.c
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
diff --git a/netutils/ftpc/ftpc_getfile.c b/netutils/ftpc/ftpc_getfile.c
index 83524df4e..3ca989a80 100644
--- a/netutils/ftpc/ftpc_getfile.c
+++ b/netutils/ftpc/ftpc_getfile.c
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <string.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpc/ftpc_getreply.c b/netutils/ftpc/ftpc_getreply.c
index d5a3d0983..e63e0ed2b 100644
--- a/netutils/ftpc/ftpc_getreply.c
+++ b/netutils/ftpc/ftpc_getreply.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "ftpc_internal.h"
diff --git a/netutils/ftpc/ftpc_idle.c b/netutils/ftpc/ftpc_idle.c
index 42e2fdbef..dd5ab5c23 100644
--- a/netutils/ftpc/ftpc_idle.c
+++ b/netutils/ftpc/ftpc_idle.c
@@ -26,7 +26,7 @@
#include "ftpc_config.h"
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
#include "ftpc_internal.h"
diff --git a/netutils/ftpc/ftpc_listdir.c b/netutils/ftpc/ftpc_listdir.c
index 92461f6e3..02947ad5c 100644
--- a/netutils/ftpc/ftpc_listdir.c
+++ b/netutils/ftpc/ftpc_listdir.c
@@ -33,7 +33,7 @@
#include <libgen.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpc/ftpc_login.c b/netutils/ftpc/ftpc_login.c
index 9e99c0dc5..4ee477e00 100644
--- a/netutils/ftpc/ftpc_login.c
+++ b/netutils/ftpc/ftpc_login.c
@@ -28,7 +28,7 @@
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpc/ftpc_putfile.c b/netutils/ftpc/ftpc_putfile.c
index 9ac75cc0e..a0ea6bc3e 100644
--- a/netutils/ftpc/ftpc_putfile.c
+++ b/netutils/ftpc/ftpc_putfile.c
@@ -35,7 +35,7 @@
#include <libgen.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpc/ftpc_rpwd.c b/netutils/ftpc/ftpc_rpwd.c
index 8ff608d9b..c2673b20e 100644
--- a/netutils/ftpc/ftpc_rpwd.c
+++ b/netutils/ftpc/ftpc_rpwd.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpc/ftpc_socket.c b/netutils/ftpc/ftpc_socket.c
index db9b4ccd0..4a769a3d3 100644
--- a/netutils/ftpc/ftpc_socket.c
+++ b/netutils/ftpc/ftpc_socket.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <string.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include "ftpc_internal.h"
diff --git a/netutils/ftpc/ftpc_transfer.c b/netutils/ftpc/ftpc_transfer.c
index 7d294d52d..b6ef5a65c 100644
--- a/netutils/ftpc/ftpc_transfer.c
+++ b/netutils/ftpc/ftpc_transfer.c
@@ -35,7 +35,7 @@
#include <ctype.h>
#include <errno.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include "netutils/ftpc.h"
diff --git a/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c
index 73b8fc9b9..a6ed75324 100644
--- a/netutils/ftpd/ftpd.c
+++ b/netutils/ftpd/ftpd.c
@@ -58,7 +58,7 @@
#include <libgen.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_cleanup.c b/netutils/libcurl4nx/curl4nx_easy_cleanup.c
index 1c3000671..0533693e8 100644
--- a/netutils/libcurl4nx/curl4nx_easy_cleanup.c
+++ b/netutils/libcurl4nx/curl4nx_easy_cleanup.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_duphandle.c b/netutils/libcurl4nx/curl4nx_easy_duphandle.c
index 4de16e0af..9bf44580c 100644
--- a/netutils/libcurl4nx/curl4nx_easy_duphandle.c
+++ b/netutils/libcurl4nx/curl4nx_easy_duphandle.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_escape.c b/netutils/libcurl4nx/curl4nx_easy_escape.c
index ff76d6d8c..8c5919b72 100644
--- a/netutils/libcurl4nx/curl4nx_easy_escape.c
+++ b/netutils/libcurl4nx/curl4nx_easy_escape.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_getinfo.c b/netutils/libcurl4nx/curl4nx_easy_getinfo.c
index ed8e90a9d..ff64739ad 100644
--- a/netutils/libcurl4nx/curl4nx_easy_getinfo.c
+++ b/netutils/libcurl4nx/curl4nx_easy_getinfo.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_init.c b/netutils/libcurl4nx/curl4nx_easy_init.c
index 1817bf734..661cfde76 100644
--- a/netutils/libcurl4nx/curl4nx_easy_init.c
+++ b/netutils/libcurl4nx/curl4nx_easy_init.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdio.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_perform.c b/netutils/libcurl4nx/curl4nx_easy_perform.c
index 466b3efe7..529aaa22d 100644
--- a/netutils/libcurl4nx/curl4nx_easy_perform.c
+++ b/netutils/libcurl4nx/curl4nx_easy_perform.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_reset.c b/netutils/libcurl4nx/curl4nx_easy_reset.c
index 7ece89011..9ee355a2f 100644
--- a/netutils/libcurl4nx/curl4nx_easy_reset.c
+++ b/netutils/libcurl4nx/curl4nx_easy_reset.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdlib.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_setopt.c b/netutils/libcurl4nx/curl4nx_easy_setopt.c
index 03f8ff5d1..378862b9e 100644
--- a/netutils/libcurl4nx/curl4nx_easy_setopt.c
+++ b/netutils/libcurl4nx/curl4nx_easy_setopt.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdbool.h>
diff --git a/netutils/libcurl4nx/curl4nx_easy_unescape.c b/netutils/libcurl4nx/curl4nx_easy_unescape.c
index 23f169afe..7e3955497 100644
--- a/netutils/libcurl4nx/curl4nx_easy_unescape.c
+++ b/netutils/libcurl4nx/curl4nx_easy_unescape.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
#include <sys/time.h>
diff --git a/netutils/mdns/mdnsd.c b/netutils/mdns/mdnsd.c
index 1f648950b..d060a8849 100644
--- a/netutils/mdns/mdnsd.c
+++ b/netutils/mdns/mdnsd.c
@@ -32,7 +32,7 @@
#include <syslog.h>
#include <limits.h>
#include <semaphore.h>
-#include <debug.h> /* For nerr, info */
+#include <nuttx/debug.h> /* For nerr, info */
#include "netutils/netlib.h"
#include "netutils/mdnsd.h"
diff --git a/netutils/netinit/netinit.c b/netutils/netinit/netinit.c
index c0a459725..24feea642 100644
--- a/netutils/netinit/netinit.c
+++ b/netutils/netinit/netinit.c
@@ -36,7 +36,7 @@
#endif
#include <arpa/inet.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <net/if.h>
#include <netinet/in.h>
#include <pthread.h>
diff --git a/netutils/netlib/netlib_checkhttpconnectivity.c b/netutils/netlib/netlib_checkhttpconnectivity.c
index 4b0df89c2..a4ed482e5 100644
--- a/netutils/netlib/netlib_checkhttpconnectivity.c
+++ b/netutils/netlib/netlib_checkhttpconnectivity.c
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_LIBC_NETDB
# include <netdb.h>
diff --git a/netutils/netlib/netlib_checkifconflict.c b/netutils/netlib/netlib_checkifconflict.c
index 5aebddd8e..c8c8fc2c1 100644
--- a/netutils/netlib/netlib_checkifconflict.c
+++ b/netutils/netlib/netlib_checkifconflict.c
@@ -29,7 +29,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/netlib.h"
diff --git a/netutils/netlib/netlib_checkifconnectivity.c b/netutils/netlib/netlib_checkifconnectivity.c
index c08995366..bfc06001a 100644
--- a/netutils/netlib/netlib_checkifconnectivity.c
+++ b/netutils/netlib/netlib_checkifconnectivity.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <nuttx/net/ip.h>
diff --git a/netutils/netlib/netlib_checkipconnectivity.c b/netutils/netlib/netlib_checkipconnectivity.c
index 44a5c636a..04b3c3c0b 100644
--- a/netutils/netlib/netlib_checkipconnectivity.c
+++ b/netutils/netlib/netlib_checkipconnectivity.c
@@ -31,7 +31,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <nuttx/net/ip.h>
diff --git a/netutils/netlib/netlib_getifstatistics.c b/netutils/netlib/netlib_getifstatistics.c
index b838d556d..e6c52abba 100644
--- a/netutils/netlib/netlib_getifstatistics.c
+++ b/netutils/netlib/netlib_getifstatistics.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/types.h>
diff --git a/netutils/netlib/netlib_ipmsfilter.c b/netutils/netlib/netlib_ipmsfilter.c
index d7f9b0ff1..9fa2f23aa 100644
--- a/netutils/netlib/netlib_ipmsfilter.c
+++ b/netutils/netlib/netlib_ipmsfilter.c
@@ -33,7 +33,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netinet/in.h>
#include <sys/sockio.h>
diff --git a/netutils/netlib/netlib_listenon.c b/netutils/netlib/netlib_listenon.c
index 608937ff7..a80cd8158 100644
--- a/netutils/netlib/netlib_listenon.c
+++ b/netutils/netlib/netlib_listenon.c
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>
diff --git a/netutils/netlib/netlib_nodeaddrconv.c b/netutils/netlib/netlib_nodeaddrconv.c
index 67c6ee2f7..1df293788 100644
--- a/netutils/netlib/netlib_nodeaddrconv.c
+++ b/netutils/netlib/netlib_nodeaddrconv.c
@@ -34,7 +34,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "nuttx/wireless/pktradio.h"
#include "netutils/netlib.h"
diff --git a/netutils/netlib/netlib_obtainipv4addr.c b/netutils/netlib/netlib_obtainipv4addr.c
index 5390466fe..cab55b74c 100644
--- a/netutils/netlib/netlib_obtainipv4addr.c
+++ b/netutils/netlib/netlib_obtainipv4addr.c
@@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/types.h>
#include "netutils/dhcpc.h"
diff --git a/netutils/netlib/netlib_obtainipv6addr.c b/netutils/netlib/netlib_obtainipv6addr.c
index f55667705..c1a74b8ce 100644
--- a/netutils/netlib/netlib_obtainipv6addr.c
+++ b/netutils/netlib/netlib_obtainipv6addr.c
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>
diff --git a/netutils/netlib/netlib_server.c b/netutils/netlib/netlib_server.c
index 98ff5e907..9436481bc 100644
--- a/netutils/netlib/netlib_server.c
+++ b/netutils/netlib/netlib_server.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netinet/in.h>
diff --git a/netutils/ntpclient/ntpclient.c b/netutils/ntpclient/ntpclient.c
index 22c448fdd..ce7d2f0d9 100644
--- a/netutils/ntpclient/ntpclient.c
+++ b/netutils/ntpclient/ntpclient.c
@@ -40,7 +40,7 @@
#include <sched.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <netinet/in.h>
diff --git a/netutils/pppd/ppp.h b/netutils/pppd/ppp.h
index f436a1206..519b7f168 100644
--- a/netutils/pppd/ppp.h
+++ b/netutils/pppd/ppp.h
@@ -51,7 +51,7 @@
#include "netutils/chat.h"
-#include "debug.h"
+#include <nuttx/debug.h>
#include "ppp_conf.h"
#include "ahdlc.h"
#include "lcp.h"
diff --git a/netutils/pppd/pppd.c b/netutils/pppd/pppd.c
index 73efa27c9..849e3e874 100644
--- a/netutils/pppd/pppd.c
+++ b/netutils/pppd/pppd.c
@@ -50,7 +50,7 @@
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <netinet/in.h>
diff --git a/netutils/ptpd/ptpd.c b/netutils/ptpd/ptpd.c
index f85619093..74b43084d 100644
--- a/netutils/ptpd/ptpd.c
+++ b/netutils/ptpd/ptpd.c
@@ -40,7 +40,7 @@
#include <sched.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/netutils/telnetd/telnetd_daemon.c b/netutils/telnetd/telnetd_daemon.c
index 989de34f9..c1512113c 100644
--- a/netutils/telnetd/telnetd_daemon.c
+++ b/netutils/telnetd/telnetd_daemon.c
@@ -35,7 +35,7 @@
#include <sched.h>
#include <spawn.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/net/telnet.h>
diff --git a/netutils/tftpc/tftpc_get.c b/netutils/tftpc/tftpc_get.c
index 36227e29a..84be9b223 100644
--- a/netutils/tftpc/tftpc_get.c
+++ b/netutils/tftpc/tftpc_get.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
diff --git a/netutils/tftpc/tftpc_packets.c b/netutils/tftpc/tftpc_packets.c
index 05d56083c..9f6af0c65 100644
--- a/netutils/tftpc/tftpc_packets.c
+++ b/netutils/tftpc/tftpc_packets.c
@@ -34,7 +34,7 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netinet/in.h>
#include <arpa/inet.h>
diff --git a/netutils/tftpc/tftpc_put.c b/netutils/tftpc/tftpc_put.c
index 3f3a9c849..456100bdb 100644
--- a/netutils/tftpc/tftpc_put.c
+++ b/netutils/tftpc/tftpc_put.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include "netutils/tftp.h"
diff --git a/netutils/thttpd/fdwatch.c b/netutils/thttpd/fdwatch.c
index 105fea30f..dcbd782e5 100644
--- a/netutils/thttpd/fdwatch.c
+++ b/netutils/thttpd/fdwatch.c
@@ -39,7 +39,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <sys/param.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <poll.h>
#include "config.h"
diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c
index 2d6a558e6..19acb562c 100644
--- a/netutils/thttpd/libhttpd.c
+++ b/netutils/thttpd/libhttpd.c
@@ -58,7 +58,7 @@
#include <signal.h>
#include <sched.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fnmatch.h>
#include "netutils/thttpd.h"
diff --git a/netutils/thttpd/tdate_parse.c b/netutils/thttpd/tdate_parse.c
index 113059223..2b49d3995 100644
--- a/netutils/thttpd/tdate_parse.c
+++ b/netutils/thttpd/tdate_parse.c
@@ -41,7 +41,7 @@
#include <string.h>
#include <ctype.h>
#include <time.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "tdate_parse.h"
diff --git a/netutils/thttpd/thttpd.c b/netutils/thttpd/thttpd.c
index 22338665b..f7de45177 100644
--- a/netutils/thttpd/thttpd.c
+++ b/netutils/thttpd/thttpd.c
@@ -50,7 +50,7 @@
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
diff --git a/netutils/thttpd/thttpd_alloc.c b/netutils/thttpd/thttpd_alloc.c
index 7999f7823..6deade0be 100644
--- a/netutils/thttpd/thttpd_alloc.c
+++ b/netutils/thttpd/thttpd_alloc.c
@@ -30,7 +30,7 @@
#include <sys/types.h>
#include <stdlib.h>
#include <malloc.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include "config.h"
diff --git a/netutils/thttpd/thttpd_cgi.c b/netutils/thttpd/thttpd_cgi.c
index 5c8914560..a0cacf03e 100644
--- a/netutils/thttpd/thttpd_cgi.c
+++ b/netutils/thttpd/thttpd_cgi.c
@@ -52,7 +52,7 @@
#include <libgen.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/binfmt/binfmt.h>
#include "netutils/thttpd.h"
@@ -766,7 +766,7 @@ static int cgi_child(int argc, char **argv)
/* Close all file descriptors EXCEPT for stdin, stdout, stderr and
* hc->conn_fd. We'll keep stderr open for error reporting; stdin and
* stdout will be closed later by dup2(). Keeping stdin and stdout open
- * now prevents re-use of fd=0 and 1 by pipe().
+ * now prevents reuse of fd=0 and 1 by pipe().
*/
ninfo("Closing descriptors\n");
diff --git a/netutils/thttpd/timers.c b/netutils/thttpd/timers.c
index a3bd89831..d2026bd1b 100644
--- a/netutils/thttpd/timers.c
+++ b/netutils/thttpd/timers.c
@@ -39,7 +39,7 @@
#include <stdlib.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "thttpd_alloc.h"
#include "timers.h"
diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c
index 8784b68b5..61f56cb4f 100644
--- a/netutils/webclient/webclient.c
+++ b/netutils/webclient/webclient.c
@@ -48,7 +48,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <assert.h>
#include <fcntl.h>
@@ -857,7 +857,7 @@ static inline int wget_parsechunkheader(struct webclient_context *ctx,
if (semicolon != NULL)
{
found_extension = true;
- ninfo("Ignoring extentions in chunk header\n");
+ ninfo("Ignoring extensions in chunk header\n");
*semicolon = 0;
}
}
diff --git a/netutils/webserver/httpd.c b/netutils/webserver/httpd.c
index 23f69a949..1cc8d58fc 100644
--- a/netutils/webserver/httpd.c
+++ b/netutils/webserver/httpd.c
@@ -52,7 +52,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifndef CONFIG_NETUTILS_HTTPD_SINGLECONNECT
# include <pthread.h>
diff --git a/netutils/webserver/httpd_dirlist.c b/netutils/webserver/httpd_dirlist.c
index bac1b2d77..6dda65286 100644
--- a/netutils/webserver/httpd_dirlist.c
+++ b/netutils/webserver/httpd_dirlist.c
@@ -36,7 +36,7 @@
#include <stdio.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <dirent.h>
#include <stdlib.h>
diff --git a/netutils/webserver/httpd_mmap.c b/netutils/webserver/httpd_mmap.c
index a4f47427d..b17ad54c4 100644
--- a/netutils/webserver/httpd_mmap.c
+++ b/netutils/webserver/httpd_mmap.c
@@ -35,7 +35,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/httpd.h"
diff --git a/netutils/webserver/httpd_sendfile.c b/netutils/webserver/httpd_sendfile.c
index 7ff8a5ccd..3a8286fe9 100644
--- a/netutils/webserver/httpd_sendfile.c
+++ b/netutils/webserver/httpd_sendfile.c
@@ -35,7 +35,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "netutils/httpd.h"
diff --git a/nshlib/nsh_altconsole.c b/nshlib/nsh_altconsole.c
index 7423fedf7..bb9fc30f2 100644
--- a/nshlib/nsh_altconsole.c
+++ b/nshlib/nsh_altconsole.c
@@ -30,7 +30,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include "nsh.h"
diff --git a/nshlib/nsh_codeccmd.c b/nshlib/nsh_codeccmd.c
index 91b3953ff..0d677669f 100644
--- a/nshlib/nsh_codeccmd.c
+++ b/nshlib/nsh_codeccmd.c
@@ -37,7 +37,7 @@
#include <fcntl.h>
#include <libgen.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#if defined(CONFIG_NSH_DISABLE_URLENCODE) && defined(CONFIG_NSH_DISABLE_URLDECODE)
# undef CONFIG_CODECS_URLCODE
diff --git a/nshlib/nsh_console.c b/nshlib/nsh_console.c
index cb95e0342..ebcbe6fb2 100644
--- a/nshlib/nsh_console.c
+++ b/nshlib/nsh_console.c
@@ -36,7 +36,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "nsh.h"
#include "nsh_console.h"
diff --git a/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c
index 13f26f694..a88c1a20d 100644
--- a/nshlib/nsh_fscmds.c
+++ b/nshlib/nsh_fscmds.c
@@ -43,7 +43,7 @@
#include <limits.h>
#include <libgen.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "nsh.h"
diff --git a/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c
index f4a2e903b..a58d6ef9c 100644
--- a/nshlib/nsh_mntcmds.c
+++ b/nshlib/nsh_mntcmds.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <netdb.h>
#include <netinet/in.h>
diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c
index 8cd0d6cc3..3171bdfbb 100644
--- a/nshlib/nsh_netcmds.c
+++ b/nshlib/nsh_netcmds.c
@@ -45,7 +45,7 @@
#include <libgen.h> /* Needed for basename */
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <getopt.h>
#if defined(CONFIG_LIBC_NETDB) && !defined(CONFIG_NSH_DISABLE_NSLOOKUP)
diff --git a/nshlib/nsh_parse.c b/nshlib/nsh_parse.c
index 9a67cc845..61ed7de55 100644
--- a/nshlib/nsh_parse.c
+++ b/nshlib/nsh_parse.c
@@ -31,7 +31,7 @@
#include <fcntl.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sched.h>
#include <unistd.h>
diff --git a/nshlib/nsh_telnetd.c b/nshlib/nsh_telnetd.c
index 62f87e479..83fc36ca6 100644
--- a/nshlib/nsh_telnetd.c
+++ b/nshlib/nsh_telnetd.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <sys/socket.h>
diff --git a/nshlib/nsh_usbconsole.c b/nshlib/nsh_usbconsole.c
index cc7f97005..74f8a4795 100644
--- a/nshlib/nsh_usbconsole.c
+++ b/nshlib/nsh_usbconsole.c
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#ifdef CONFIG_CDCACM
# include <nuttx/usb/cdcacm.h>
diff --git a/nshlib/nsh_usbtrace.c b/nshlib/nsh_usbtrace.c
index df05d45a3..f57a81ac6 100644
--- a/nshlib/nsh_usbtrace.c
+++ b/nshlib/nsh_usbtrace.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <stdarg.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev_trace.h>
diff --git a/platform/mikroe-stm32f4/mikroe_configdata.c b/platform/mikroe-stm32f4/mikroe_configdata.c
index b6d9bb6fc..d65e695c7 100644
--- a/platform/mikroe-stm32f4/mikroe_configdata.c
+++ b/platform/mikroe-stm32f4/mikroe_configdata.c
@@ -30,7 +30,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <sys/ioctl.h>
@@ -233,7 +233,7 @@ int platform_getconfig(enum config_data_e id, int instance,
case CONFIGDATA_TSCALIBRATION:
#ifdef CONFIG_MIKROE_STM32F4_CONFIGDATA_FS
- /* Load config data fram a file on the filesystem. Try to open
+ /* Load config data from a file on the filesystem. Try to open
* the file.
*/
diff --git a/system/cdcacm/sercon_main.c b/system/cdcacm/sercon_main.c
index 9b8ab41d8..c03ce2d18 100644
--- a/system/cdcacm/sercon_main.c
+++ b/system/cdcacm/sercon_main.c
@@ -30,7 +30,7 @@
#include <sys/boardctl.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/cdcacm.h>
diff --git a/system/cdcacm/serdis_main.c b/system/cdcacm/serdis_main.c
index 834ae186b..56e5fbfe0 100644
--- a/system/cdcacm/serdis_main.c
+++ b/system/cdcacm/serdis_main.c
@@ -30,7 +30,7 @@
#include <sys/boardctl.h>
#include <stdio.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/cdcacm.h>
diff --git a/system/cle/cle.c b/system/cle/cle.c
index 21b442806..bfa01c11f 100644
--- a/system/cle/cle.c
+++ b/system/cle/cle.c
@@ -36,7 +36,7 @@
#include <ctype.h>
#include <syslog.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <termios.h>
#include <nuttx/ascii.h>
diff --git a/system/composite/composite_main.c b/system/composite/composite_main.c
index 9dc4399e8..f6dc54bff 100644
--- a/system/composite/composite_main.c
+++ b/system/composite/composite_main.c
@@ -35,7 +35,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/composite.h>
diff --git a/system/cu/cu_main.c b/system/cu/cu_main.c
index fa5b31900..f0767ddc3 100644
--- a/system/cu/cu_main.c
+++ b/system/cu/cu_main.c
@@ -52,7 +52,7 @@
#include <errno.h>
#include <stdlib.h>
#include <signal.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
diff --git a/system/dd/dd_main.c b/system/dd/dd_main.c
index 9be5de7ac..a240ae3fe 100644
--- a/system/dd/dd_main.c
+++ b/system/dd/dd_main.c
@@ -32,7 +32,7 @@
#include <sys/stat.h>
#ifdef __NuttX__
-#include <debug.h>
+#include <nuttx/debug.h>
#endif
#include <inttypes.h>
#include <stdint.h>
diff --git a/system/dhcp6c/renew6_main.c b/system/dhcp6c/renew6_main.c
index d0f44382b..7149af1f2 100644
--- a/system/dhcp6c/renew6_main.c
+++ b/system/dhcp6c/renew6_main.c
@@ -25,7 +25,7 @@
****************************************************************************/
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <errno.h>
diff --git a/system/i2c/i2c_main.c b/system/i2c/i2c_main.c
index 7abe9bdd1..80e7974d2 100644
--- a/system/i2c/i2c_main.c
+++ b/system/i2c/i2c_main.c
@@ -35,7 +35,7 @@
#include <stdarg.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "i2ctool.h"
@@ -165,7 +165,7 @@ static int i2ccmd_help(FAR struct i2ctool_s *i2ctool, int argc,
"o Arguments are \"sticky\". For example, once "
"the I2C address is\n");
i2ctool_printf(i2ctool,
- " specified, that address will be re-used until "
+ " specified, that address will be reused until "
"it is changed.\n");
i2ctool_printf(i2ctool, "\nWARNING:\n");
i2ctool_printf(i2ctool,
diff --git a/system/nxcamera/nxcamera.c b/system/nxcamera/nxcamera.c
index d2070e966..d698b9e20 100644
--- a/system/nxcamera/nxcamera.c
+++ b/system/nxcamera/nxcamera.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/system/nxlooper/nxlooper.c b/system/nxlooper/nxlooper.c
index 3d8404520..6c142ee26 100644
--- a/system/nxlooper/nxlooper.c
+++ b/system/nxlooper/nxlooper.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c
index 0de66f68a..173ad622f 100644
--- a/system/nxplayer/nxplayer.c
+++ b/system/nxplayer/nxplayer.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/system/nxplayer/nxplayer_common.c b/system/nxplayer/nxplayer_common.c
index 94b794c2c..c33c38690 100644
--- a/system/nxplayer/nxplayer_common.c
+++ b/system/nxplayer/nxplayer_common.c
@@ -27,7 +27,7 @@
#include <sys/types.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c
index 6a75f6a57..2f6d01d22 100644
--- a/system/nxrecorder/nxrecorder.c
+++ b/system/nxrecorder/nxrecorder.c
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/system/nxrecorder/nxrecorder_common.c b/system/nxrecorder/nxrecorder_common.c
index d063f140c..c78a360ca 100644
--- a/system/nxrecorder/nxrecorder_common.c
+++ b/system/nxrecorder/nxrecorder_common.c
@@ -27,7 +27,7 @@
#include <sys/types.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/system/popen/popen.c b/system/popen/popen.c
index d9286c959..b52fbaafe 100644
--- a/system/popen/popen.c
+++ b/system/popen/popen.c
@@ -35,7 +35,7 @@
#include <sched.h>
#include <spawn.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/system/readline/readline_common.c b/system/readline/readline_common.c
index 273821357..0fd3b9396 100644
--- a/system/readline/readline_common.c
+++ b/system/readline/readline_common.c
@@ -31,7 +31,7 @@
#include <ctype.h>
#include <errno.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/ascii.h>
#include <nuttx/vt100.h>
diff --git a/system/spi/spi_main.c b/system/spi/spi_main.c
index 140826e43..8950a48b8 100644
--- a/system/spi/spi_main.c
+++ b/system/spi/spi_main.c
@@ -35,7 +35,7 @@
#include <stdarg.h>
#include <assert.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "spitool.h"
diff --git a/system/system/system.c b/system/system/system.c
index 3fd9850d7..46db1719b 100644
--- a/system/system/system.c
+++ b/system/system/system.c
@@ -31,7 +31,7 @@
#include <sched.h>
#include <spawn.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <execinfo.h>
#include <syslog.h>
diff --git a/system/tee/tee.c b/system/tee/tee.c
index cb934c7a9..844c94c11 100644
--- a/system/tee/tee.c
+++ b/system/tee/tee.c
@@ -50,7 +50,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/system/termcurses/tcurses_vt100.c b/system/termcurses/tcurses_vt100.c
index 84c369cce..ac4685a4e 100644
--- a/system/termcurses/tcurses_vt100.c
+++ b/system/termcurses/tcurses_vt100.c
@@ -35,7 +35,7 @@
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdio.h>
#include <stdlib.h>
#include <termios.h>
diff --git a/system/termcurses/termcurses.c b/system/termcurses/termcurses.c
index 4d042b6eb..6e3273c31 100644
--- a/system/termcurses/termcurses.c
+++ b/system/termcurses/termcurses.c
@@ -34,7 +34,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "tcurses_priv.h"
diff --git a/system/ubloxmodem/ubloxmodem_main.c b/system/ubloxmodem/ubloxmodem_main.c
index 0a54b9240..3f7baa601 100644
--- a/system/ubloxmodem/ubloxmodem_main.c
+++ b/system/ubloxmodem/ubloxmodem_main.c
@@ -45,7 +45,7 @@
#include <sys/ioctl.h>
#include <sys/param.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
diff --git a/system/usbmsc/usbmsc_main.c b/system/usbmsc/usbmsc_main.c
index 6b08e4da0..3cddcc230 100644
--- a/system/usbmsc/usbmsc_main.c
+++ b/system/usbmsc/usbmsc_main.c
@@ -35,7 +35,7 @@
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/usb/usbdev.h>
#include <nuttx/usb/usbmsc.h>
diff --git a/system/vi/vi.c b/system/vi/vi.c
index d2c894cf3..e94bc4361 100644
--- a/system/vi/vi.c
+++ b/system/vi/vi.c
@@ -39,7 +39,7 @@
#include <ctype.h>
#include <syslog.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <system/termcurses.h>
#include <graphics/curses.h>
diff --git a/system/zmodem/zm.h b/system/zmodem/zm.h
index a7971c00e..8593e1ff7 100644
--- a/system/zmodem/zm.h
+++ b/system/zmodem/zm.h
@@ -36,7 +36,7 @@
#include <sys/types.h>
#include <stdint.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <syslog.h>
#include <nuttx/compiler.h>
@@ -206,7 +206,7 @@
#define ZM_XFRDONE 1 /* Success - Transfer complete */
/* The actual packet buffer size includes 5 bytes to hold the transfer type
- * and the maxmimum size 4-byte CRC.
+ * and the maximum size 4-byte CRC.
*/
#define ZM_PKTBUFSIZE (CONFIG_SYSTEM_ZMODEM_PKTBUFSIZE + 5)
@@ -332,7 +332,7 @@ struct zm_state_s
uint16_t flags; /* See ZM_FLAG_* definitions */
uint16_t nerrors; /* Number of data errors */
timer_t timer; /* Watchdog timer */
- int remfd; /* The R/W file descritor used for communication with remote */
+ int remfd; /* The R/W file descriptor used for communication with remote */
/* Buffers.
*
diff --git a/testing/drivers/drivertest/drivertest_audio.c b/testing/drivers/drivertest/drivertest_audio.c
index a467f6f26..de12da3d1 100644
--- a/testing/drivers/drivertest/drivertest_audio.c
+++ b/testing/drivers/drivertest/drivertest_audio.c
@@ -44,7 +44,7 @@
#include <errno.h>
#include <dirent.h>
#include <mqueue.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <unistd.h>
#include <nuttx/audio/audio.h>
diff --git a/testing/drivers/drivertest/drivertest_framebuffer.c b/testing/drivers/drivertest/drivertest_framebuffer.c
index ac8f6f266..cf57d3f8a 100644
--- a/testing/drivers/drivertest/drivertest_framebuffer.c
+++ b/testing/drivers/drivertest/drivertest_framebuffer.c
@@ -38,7 +38,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <inttypes.h>
#include <poll.h>
diff --git a/testing/drivers/drivertest/drivertest_lcd.c b/testing/drivers/drivertest/drivertest_lcd.c
index 647d8cbe2..405b129f0 100644
--- a/testing/drivers/drivertest/drivertest_lcd.c
+++ b/testing/drivers/drivertest/drivertest_lcd.c
@@ -40,7 +40,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <inttypes.h>
diff --git a/testing/drivers/drivertest/drivertest_pwm.c b/testing/drivers/drivertest/drivertest_pwm.c
index a587fead1..3dd3bae64 100644
--- a/testing/drivers/drivertest/drivertest_pwm.c
+++ b/testing/drivers/drivertest/drivertest_pwm.c
@@ -34,7 +34,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <string.h>
#include <inttypes.h>
@@ -107,7 +107,7 @@ static void pwm_help(FAR const char *progname,
progname);
printf("\nArguments are \"sticky\". "
"For example, once the PWM frequency is\n");
- printf("specified, that frequency will be re-used until it is changed.\n");
+ printf("specified, that frequency will be reused until it is changed.\n");
printf("\n\"sticky\" OPTIONS include:\n");
printf(" [-p devpath] selects the PWM device. "
"Default: %s Current: %s\n", PWM_DEFAULT_DEVPATH,
diff --git a/testing/drivers/drivertest/drivertest_watchdog.c b/testing/drivers/drivertest/drivertest_watchdog.c
index 1021e8e10..72f5abe0e 100644
--- a/testing/drivers/drivertest/drivertest_watchdog.c
+++ b/testing/drivers/drivertest/drivertest_watchdog.c
@@ -35,7 +35,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <inttypes.h>
#include <stdarg.h>
#include <stddef.h>
diff --git a/testing/drivers/nand_sim/nand_sim_main.c b/testing/drivers/nand_sim/nand_sim_main.c
index 9e91227a4..70ea24227 100644
--- a/testing/drivers/nand_sim/nand_sim_main.c
+++ b/testing/drivers/nand_sim/nand_sim_main.c
@@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdio.h>
#include <nuttx/drivers/drivers.h>
@@ -72,7 +72,7 @@ FAR struct nand_raw_s *g_nand_mtd_raw;
* Name: wrapper_init
*
* Description:
- * Initializes the wrapper by allocating memory and assiging the methods.
+ * Initializes the wrapper by allocating memory and assigning the methods.
*
* Returned Value:
* 0: Successful
@@ -114,7 +114,7 @@ int wrapper_init(void)
* Name: terminate
*
* Description:
- * Handles the SIGTERM signal by exitting gracefully.
+ * Handles the SIGTERM signal by exiting gracefully.
*
****************************************************************************/
diff --git a/testing/fs/epoll/epoll.c b/testing/fs/epoll/epoll.c
index cd1d6cc0f..8422c5fe7 100644
--- a/testing/fs/epoll/epoll.c
+++ b/testing/fs/epoll/epoll.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
#include <sys/epoll.h>
#include <sys/timerfd.h>
@@ -193,7 +193,7 @@ static void epoll01(FAR void **state)
ret = timerfd_stop(args->fd[0]);
assert_true(ret == 0);
- /* 3rd wait should directly return 0, timer has stoped */
+ /* 3rd wait should directly return 0, timer has stopped */
ret = epoll_wait(args->efd, &evs, 1, 0);
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
@@ -274,7 +274,7 @@ static void epoll02(FAR void **state)
struct epoll_event evs[2];
int ret;
- /* 1st wait, shoud return after 1000ms */
+ /* 1st wait, should return after 1000ms */
ret = epoll_wait(args->efd, evs, 2, 1100);
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
@@ -406,7 +406,7 @@ static void epoll03(FAR void **state)
/* 1st wait should timeout, because server accept will trigger
* EPOLLOUT event, but we do not set EPOLLOUT in ev.events.
- * Even the server has writen the data, but to check the EPOLLIN event,
+ * Even the server has written the data, but to check the EPOLLIN event,
* client need call epoll_wait again, because local socket internal state
* changed, we need setup it again to get the EPOLLIN event.
*/
@@ -416,7 +416,7 @@ static void epoll03(FAR void **state)
TIME_ASSERT_RANGE(get_elapse(args->start), 1000);
assert_true(ret == 0);
- /* 2nd wait shoud return immediately, because server has send
+ /* 2nd wait should return immediately, because server has sent
* data to client.
*/
diff --git a/testing/fs/mtd_config_fs/mtd_config_fs_test_main.c b/testing/fs/mtd_config_fs/mtd_config_fs_test_main.c
index c85df92aa..7b8390150 100644
--- a/testing/fs/mtd_config_fs/mtd_config_fs_test_main.c
+++ b/testing/fs/mtd_config_fs/mtd_config_fs_test_main.c
@@ -42,7 +42,7 @@
#include <string.h>
#include <errno.h>
#include <nuttx/crc8.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <assert.h>
/****************************************************************************
diff --git a/testing/fs/nxffs/nxffs_main.c b/testing/fs/nxffs/nxffs_main.c
index 25c15513a..3305aa684 100644
--- a/testing/fs/nxffs/nxffs_main.c
+++ b/testing/fs/nxffs/nxffs_main.c
@@ -37,7 +37,7 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
@@ -598,7 +598,7 @@ static int nxffs_verifyfs(void)
else
{
#if CONFIG_TESTING_NXFFS_VERBOSE != 0
- printf(" Verifed file %s\n", file->name);
+ printf(" Verified file %s\n", file->name);
#endif
}
}
diff --git a/testing/fs/smart/smart_main.c b/testing/fs/smart/smart_main.c
index 671f5b5cb..9c8717a9d 100644
--- a/testing/fs/smart/smart_main.c
+++ b/testing/fs/smart/smart_main.c
@@ -37,7 +37,7 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/mtd/mtd.h>
@@ -611,7 +611,7 @@ static int smart_verifyfs(void)
else
{
#if CONFIG_TESTING_SMART_VERBOSE != 0
- printf(" Verifed file %s\n", file->name);
+ printf(" Verified file %s\n", file->name);
#endif
}
}
diff --git a/testing/libc/arch_libc/arch_libc_test_main.c b/testing/libc/arch_libc/arch_libc_test_main.c
index 1e1a06b19..b69c1dfc4 100644
--- a/testing/libc/arch_libc/arch_libc_test_main.c
+++ b/testing/libc/arch_libc/arch_libc_test_main.c
@@ -32,7 +32,7 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <assert.h>
/****************************************************************************
diff --git a/testing/libc/scanftest/scanftest_main.c b/testing/libc/scanftest/scanftest_main.c
index 6334c3074..0b1e614ae 100644
--- a/testing/libc/scanftest/scanftest_main.c
+++ b/testing/libc/scanftest/scanftest_main.c
@@ -75,7 +75,7 @@
#include <limits.h>
#include <libgen.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/testing/mm/memstress/memorystress_main.c b/testing/mm/memstress/memorystress_main.c
index eca7b7735..f3952e08d 100644
--- a/testing/mm/memstress/memorystress_main.c
+++ b/testing/mm/memstress/memorystress_main.c
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <stdlib.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
diff --git a/testing/ostest/signest.c b/testing/ostest/signest.c
index 5e8e65961..d79b40119 100644
--- a/testing/ostest/signest.c
+++ b/testing/ostest/signest.c
@@ -37,7 +37,7 @@
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "ostest.h"
@@ -532,7 +532,7 @@ errout_with_waiter:
total_handled = g_odd_handled + g_even_handled;
total_nested = g_odd_nested + g_even_nested;
- printf("signest_test: With intefering thread\n");
+ printf("signest_test: With interfering thread\n");
printf(" Total signalled %-3d Odd=%-3d Even=%-3d\n",
total_signals, odd_signals, even_signals);
printf(" Total handled %-3d Odd=%-3d Even=%-3d\n",
diff --git a/wireless/bluetooth/nimble/include/logcfg/logcfg.h b/wireless/bluetooth/nimble/include/logcfg/logcfg.h
index 419c1373d..de738d51f 100644
--- a/wireless/bluetooth/nimble/include/logcfg/logcfg.h
+++ b/wireless/bluetooth/nimble/include/logcfg/logcfg.h
@@ -27,7 +27,7 @@
* Included Files
****************************************************************************/
-#include <debug.h>
+#include <nuttx/debug.h>
/****************************************************************************
* Pre-processor Definitions
diff --git a/wireless/gs2200m/gs2200m_main.c b/wireless/gs2200m/gs2200m_main.c
index f58cf882c..39749761c 100644
--- a/wireless/gs2200m/gs2200m_main.c
+++ b/wireless/gs2200m/gs2200m_main.c
@@ -32,7 +32,7 @@
#include <string.h>
#include <stdlib.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
diff --git a/wireless/ieee802154/i8shark/i8shark_main.c b/wireless/ieee802154/i8shark/i8shark_main.c
index 8d7af6f7f..c213045dc 100644
--- a/wireless/ieee802154/i8shark/i8shark_main.c
+++ b/wireless/ieee802154/i8shark/i8shark_main.c
@@ -36,7 +36,7 @@
#include <fcntl.h>
#include <time.h>
#include <errno.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <sys/socket.h>
diff --git a/wireless/wapi/src/driver_wext.c b/wireless/wapi/src/driver_wext.c
index 23b158328..f7dc2906e 100644
--- a/wireless/wapi/src/driver_wext.c
+++ b/wireless/wapi/src/driver_wext.c
@@ -59,7 +59,7 @@
#include <stdlib.h>
#include <assert.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include "wireless/wapi.h"
diff --git a/wireless/wapi/src/util.h b/wireless/wapi/src/util.h
index 4639d3159..a2a0e2e78 100644
--- a/wireless/wapi/src/util.h
+++ b/wireless/wapi/src/util.h
@@ -39,7 +39,7 @@
****************************************************************************/
#include <string.h>
-#include <debug.h>
+#include <nuttx/debug.h>
#include <errno.h>
/****************************************************************************