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
@@ -29,8 +29,8 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include "bm3803-config.h"
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>
+1 -1
View File
@@ -34,7 +34,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <time.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <arch/board/board.h>
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdint.h>
#include <time.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "bm3803_tim.h"
+1 -1
View File
@@ -32,8 +32,8 @@
#include <sched.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/clock.h>
@@ -29,8 +29,8 @@
#include <stdint.h>
#include <time.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/kmalloc.h>
#include <nuttx/timers/oneshot.h>
+1 -1
View File
@@ -76,7 +76,7 @@
#include <nuttx/arch.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "bm3803_oneshot.h"
#include "bm3803_freerun.h"
+1 -1
View File
@@ -34,7 +34,7 @@
#include <semaphore.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/board/board.h>
+1 -1
View File
@@ -30,8 +30,8 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/clock.h>
#include <nuttx/timers/watchdog.h>
+1 -1
View File
@@ -28,8 +28,8 @@
#include <stdint.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include "bm3823-config.h"
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>
+1 -1
View File
@@ -33,7 +33,7 @@
#include <semaphore.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <time.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <arch/board/board.h>
+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/arch.h>
#include <nuttx/tls.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/kmalloc.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -29,7 +29,7 @@
#include <sched.h>
#include <syscall.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/irq.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>
#include <nuttx/spinlock.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>
#include <nuttx/spinlock.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>
#include <nuttx/spinlock.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
@@ -29,7 +29,7 @@
#include <sys/types.h>
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -29,8 +29,8 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
+1 -1
View File
@@ -30,7 +30,7 @@
#include "s698pm-config.h"
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>
+1 -1
View File
@@ -34,7 +34,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#ifdef CONFIG_SERIAL_TERMIOS
# include <termios.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <time.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <arch/board/board.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
+1 -1
View File
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <stdio.h>
+1 -1
View File
@@ -34,7 +34,7 @@
#include <semaphore.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/board/board.h>
@@ -28,8 +28,8 @@
#include <stdint.h>
#include <stdlib.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
@@ -28,8 +28,8 @@
#include <stdint.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
@@ -30,8 +30,8 @@
#include <sched.h>
#include <syscall.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 <string.h>
#include <syscall.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/sched.h>
@@ -29,7 +29,7 @@
#include <sched.h>
#include <syscall.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>