include/debug.h: Move to include/nuttx/debug.h

debug.h is a NuttX-specific, non-POSIX header. Placing it in the
top-level include/ directory creates naming conflicts with external
projects that define their own debug.h.
This commit moves the canonical header to include/nuttx/debug.h,
following the NuttX convention for non-POSIX/non-standard headers,
and updates all in-tree references.

A backward-compatibility shim is left at include/debug.h that
emits a deprecation #warning and re-includes <nuttx/debug.h>,
allowing out-of-tree code to continue building while migrating.

Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
This commit is contained in:
Piyush Patle
2026-04-01 05:11:15 +05:30
committed by Alan C. Assis
parent 900998fe20
commit 0dccc8ba21
5719 changed files with 7189 additions and 7161 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include <stdint.h>
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>
+1 -1
View File
@@ -29,7 +29,7 @@
#include <sys/types.h>
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include <stdint.h>
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/arch.h>
#include <nuttx/tls.h>
+1 -1
View File
@@ -37,7 +37,7 @@
#include <stdbool.h>
#include <time.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <assert.h>
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mutex.h>
#include <nuttx/i2c/i2c_master.h>
+1 -1
View File
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -32,7 +32,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
+1 -1
View File
@@ -32,8 +32,8 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/serial/serial.h>
+1 -1
View File
@@ -28,8 +28,8 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include <stdint.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/board/board.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/io.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -30,8 +30,8 @@
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/mm/gran.h>
+1 -1
View File
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -32,8 +32,8 @@
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/serial/serial.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
+1 -1
View File
@@ -28,8 +28,8 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <time.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/board/board.h>
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdlib.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mutex.h>
#include <nuttx/i2c/i2c_master.h>
+1 -1
View File
@@ -27,8 +27,8 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <ez8.h>
#include <nuttx/irq.h>
+1 -1
View File
@@ -28,8 +28,8 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
+1 -1
View File
@@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <ez8.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
+1 -1
View File
@@ -28,8 +28,8 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>