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

View file

@ -31,7 +31,7 @@
#include <aio.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -30,7 +30,7 @@
#include <aio.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/wqueue.h>

View file

@ -31,7 +31,7 @@
#include <aio.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -32,7 +32,7 @@
#include <aio.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/signal.h>

View file

@ -33,7 +33,7 @@
#include <aio.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -36,7 +36,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/fs/ioctl.h>

View file

@ -38,7 +38,7 @@
#include <lzf.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -27,7 +27,7 @@
#include <sys/types.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <stdarg.h>
#include <fcntl.h>

View file

@ -36,7 +36,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/lib/lib.h>
#include <nuttx/drivers/drivers.h>

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/fs/fs.h>

View file

@ -31,7 +31,7 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -25,7 +25,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "inode/inode.h"

View file

@ -30,7 +30,7 @@
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -33,7 +33,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/lib/lib.h>
#include <nuttx/mtd/mtd.h>

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/fs/fs.h>

View file

@ -37,7 +37,7 @@
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -66,7 +66,7 @@
#include <ctype.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/fs/fat.h>

View file

@ -35,7 +35,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -36,7 +36,7 @@
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/lib/lib.h>
#include <nuttx/mutex.h>

View file

@ -33,7 +33,7 @@
#include <sched.h>
#include <errno.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <stdio.h>
#include <nuttx/fs/fs.h>

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/kmalloc.h>

View file

@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include "fs_heap.h"

View file

@ -27,5 +27,5 @@
#undef LFS_CONFIG
#undef LFS_UTIL_H
#include <debug.h>
#include <nuttx/debug.h>
#include "littlefs/lfs_util.h"

View file

@ -29,7 +29,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "sched/sched.h"
#include "fs_heap.h"

View file

@ -32,7 +32,7 @@
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -25,7 +25,7 @@
****************************************************************************/
#include <sys/mman.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/fs/fs.h>

View file

@ -33,7 +33,7 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>

View file

@ -29,7 +29,7 @@
#include <sys/ioctl.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <inttypes.h>
#include <string.h>

View file

@ -57,7 +57,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/list.h>
#include <nuttx/mtd/mtd.h>

View file

@ -96,7 +96,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <fcntl.h>
#include <nuttx/kmalloc.h>
#include <math.h>

View file

@ -35,7 +35,7 @@
#include <stdbool.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/wdog.h>
#include <nuttx/kmalloc.h>

View file

@ -31,7 +31,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>

View file

@ -41,7 +41,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -29,7 +29,7 @@
#include <sched.h>
#include <mqueue.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/sched.h>

View file

@ -36,7 +36,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "rpc.h"
#include "nfs.h"

View file

@ -62,7 +62,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -86,7 +86,7 @@
#include <errno.h>
#include <inttypes.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "xdr_subs.h"
#include "nfs_proto.h"

View file

@ -29,7 +29,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>

View file

@ -28,7 +28,7 @@
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>

View file

@ -28,7 +28,7 @@
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <inttypes.h>
#include <stdint.h>

View file

@ -30,7 +30,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/crc32.h>

View file

@ -30,7 +30,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/mtd/mtd.h>

View file

@ -30,7 +30,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/lib/lib.h>

View file

@ -29,7 +29,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/fs/ioctl.h>

View file

@ -32,7 +32,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/lib/lib.h>

View file

@ -30,7 +30,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/kmalloc.h>

View file

@ -31,7 +31,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/fs/fs.h>

View file

@ -29,7 +29,7 @@
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>

View file

@ -33,7 +33,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>

View file

@ -29,7 +29,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "nxffs.h"

View file

@ -30,7 +30,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>

View file

@ -31,7 +31,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc32.h>
#include <nuttx/fs/fs.h>

View file

@ -25,7 +25,7 @@
****************************************************************************/
#include <ctype.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <endian.h>
#include <inttypes.h>
#include <sys/param.h>

View file

@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <endian.h>
#include <string.h>
#include <inttypes.h>

View file

@ -39,8 +39,8 @@
#include <fnmatch.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>

View file

@ -31,7 +31,7 @@
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/kmalloc.h>

View file

@ -39,7 +39,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/clock.h>
#include <nuttx/kmalloc.h>

View file

@ -38,7 +38,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/clock.h>
#include <nuttx/kmalloc.h>

View file

@ -36,7 +36,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <endian.h>
#include <nuttx/kmalloc.h>

View file

@ -37,7 +37,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/mm/iob.h>

View file

@ -37,7 +37,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <ctype.h>
#include <nuttx/kmalloc.h>

View file

@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <poll.h>
#include <stdint.h>

View file

@ -38,7 +38,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <malloc.h>
#include <execinfo.h>

View file

@ -36,7 +36,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>

View file

@ -38,7 +38,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/clock.h>
#include <nuttx/kmalloc.h>

View file

@ -38,7 +38,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/version.h>

View file

@ -37,7 +37,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>

View file

@ -37,7 +37,7 @@
#include <limits.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -34,7 +34,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/crc16.h>
#include <nuttx/kmalloc.h>

View file

@ -35,7 +35,7 @@
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <limits.h>
#include <nuttx/lib/lib.h>

View file

@ -31,7 +31,7 @@
#include <string.h>
#include <fcntl.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/kmalloc.h>

View file

@ -37,7 +37,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>

View file

@ -36,7 +36,7 @@
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/mutex.h>

View file

@ -34,7 +34,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/fs.h>

View file

@ -32,7 +32,7 @@
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <fcntl.h>
#include <nuttx/cancelpt.h>

View file

@ -35,7 +35,7 @@
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "inode/inode.h"
#include "fs_heap.h"

View file

@ -35,7 +35,7 @@
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "inode/inode.h"
#include "fs_heap.h"

View file

@ -46,7 +46,7 @@
#include <nuttx/config.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>

View file

@ -34,7 +34,7 @@ extern "C"
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <stdint.h>
/****************************************************************************

View file

@ -64,7 +64,7 @@
#include <stdio.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "spiffs.h"
#include "spiffs_core.h"

View file

@ -48,7 +48,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <inttypes.h>
#include "spiffs.h"

View file

@ -31,7 +31,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mtd/mtd.h>

View file

@ -51,7 +51,7 @@
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <inttypes.h>
#include <nuttx/kmalloc.h>

View file

@ -33,7 +33,7 @@
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/sched.h>
#include <nuttx/kmalloc.h>

View file

@ -40,7 +40,7 @@
#include <assert.h>
#include <errno.h>
#include <fixedmath.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/lib/lib.h>
#include <nuttx/fs/fs.h>

View file

@ -37,7 +37,7 @@
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <netinet/in.h>

View file

@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>

View file

@ -24,7 +24,7 @@
* Included Files
****************************************************************************/
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/nuttx.h>

View file

@ -33,7 +33,7 @@
#include <poll.h>
#include <errno.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/nuttx.h>
#include <nuttx/clock.h>

View file

@ -31,7 +31,7 @@
#include <errno.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mutex.h>
#include <sys/ioctl.h>
#include <sys/eventfd.h>

View file

@ -35,7 +35,7 @@
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <poll.h>
#include <string.h>
#include <search.h>

View file

@ -30,7 +30,7 @@
#include <time.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/clock.h>
#include <nuttx/semaphore.h>

View file

@ -33,7 +33,7 @@
#include <poll.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/cancelpt.h>

View file

@ -29,7 +29,7 @@
#include <sys/sendfile.h>
#include <stdbool.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>
#include <nuttx/kmalloc.h>

View file

@ -31,7 +31,7 @@
#include <errno.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mutex.h>
#include <nuttx/signal.h>

View file

@ -31,7 +31,7 @@
#include <errno.h>
#include <fcntl.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/irq.h>
#include <nuttx/wdog.h>

View file

@ -30,7 +30,7 @@
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/fs/fs.h>