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
@@ -28,7 +28,7 @@
#include <sys/types.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/usb/usbdev_trace.h>