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

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

View file

@ -45,7 +45,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "arp/arp.h"

View file

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

View file

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

View file

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

View file

@ -47,7 +47,7 @@
#include <nuttx/config.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>

View file

@ -28,7 +28,7 @@
#include <unistd.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

@ -50,7 +50,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/ethernet.h>

View file

@ -30,7 +30,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/radiodev.h>

View file

@ -29,7 +29,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netpacket/bluetooth.h>
#include <arch/irq.h>

View file

@ -32,7 +32,7 @@
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/radiodev.h>

View file

@ -31,7 +31,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/radiodev.h>

View file

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

View file

@ -34,7 +34,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netpacket/bluetooth.h>
#include <arch/irq.h>

View file

@ -32,7 +32,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <socket/socket.h>
#include <netpacket/bluetooth.h>

View file

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

View file

@ -28,7 +28,7 @@
#if defined(CONFIG_NET) && defined(CONFIG_NET_CAN)
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.h>

View file

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

View file

@ -30,7 +30,7 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>
#include <nuttx/net/can.h>

View file

@ -28,7 +28,7 @@
#if defined(CONFIG_NET) && defined(CONFIG_NET_CAN)
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/can.h>

View file

@ -28,7 +28,7 @@
#if defined(CONFIG_NET) && defined(CONFIG_NET_CAN)
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.h>

View file

@ -33,7 +33,7 @@
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <assert.h>
#include <arch/irq.h>

View file

@ -34,7 +34,7 @@
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>

View file

@ -31,7 +31,7 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>

View file

@ -30,7 +30,7 @@
#include <stdint.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>
#include <nuttx/net/can.h>

View file

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

View file

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

View file

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

View file

@ -28,7 +28,7 @@
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/netdev.h>

View file

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

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/ip.h>
#include <nuttx/net/pkt.h>

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#ifdef CONFIG_NET
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/clock.h>
#include <nuttx/net/netconfig.h>

View file

@ -45,7 +45,7 @@
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/net/netdev.h>

View file

@ -84,7 +84,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <netinet/in.h>

View file

@ -30,7 +30,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <stdbool.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <net/if.h>

View file

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

View file

@ -49,7 +49,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <sys/time.h>
#include <net/if.h>

View file

@ -29,7 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <net/if.h>

View file

@ -29,7 +29,7 @@
#include <stdint.h>
#include <poll.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>

View file

@ -28,7 +28,7 @@
#if defined(CONFIG_NET) && defined(CONFIG_NET_ICMP) && \
defined(CONFIG_NET_ICMP_SOCKET)
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.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/semaphore.h>
#include <nuttx/net/net.h>

View file

@ -30,7 +30,7 @@
#include <sys/socket.h>
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

@ -32,7 +32,7 @@
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

@ -32,7 +32,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/net.h>

View file

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netstats.h>

View file

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

View file

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

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/ethernet.h>
#include <nuttx/net/netdev.h>

View file

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.h>

View file

@ -29,7 +29,7 @@
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <net/if.h>

View file

@ -28,7 +28,7 @@
#include <unistd.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

@ -29,7 +29,7 @@
#include <stdint.h>
#include <poll.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/net/net.h>

View file

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

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#if defined(CONFIG_NET_ICMPv6_SOCKET) || defined(CONFIG_NET_ICMPv6_NEIGHBOR)
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/netdev.h>

View file

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <nuttx/net/netconfig.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/semaphore.h>
#include <nuttx/net/net.h>

View file

@ -30,7 +30,7 @@
#include <sys/socket.h>
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

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

View file

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/netstats.h>

View file

@ -32,7 +32,7 @@
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>
#include <net/if.h>

View file

@ -32,7 +32,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/net.h>

View file

@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>
#include <nuttx/net/netdev.h>

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/radiodev.h>

View file

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

View file

@ -28,7 +28,7 @@
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/mm/iob.h>
#include <nuttx/net/radiodev.h>

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/radiodev.h>

View file

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

View file

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

View file

@ -32,7 +32,7 @@
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <socket/socket.h>
#include <netpacket/ieee802154.h>

View file

@ -52,7 +52,7 @@
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arch/irq.h>

View file

@ -46,7 +46,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/ip.h>
#include <nuttx/net/igmp.h>

View file

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

View file

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

View file

@ -46,7 +46,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>

View file

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

View file

@ -46,7 +46,7 @@
#include <nuttx/config.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netconfig.h>
#include <nuttx/net/net.h>

View file

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

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <arpa/inet.h>
#include <nuttx/net/netconfig.h>

View file

@ -47,7 +47,7 @@
#include <nuttx/compiler.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/wdog.h>
#include <nuttx/wqueue.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/net/net.h>
#include <nuttx/net/netconfig.h>

View file

@ -25,7 +25,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/ip.h>
#include <nuttx/net/netconfig.h>

View file

@ -28,7 +28,7 @@
#include <sys/types.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>

View file

@ -29,7 +29,7 @@
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/net.h>

View file

@ -25,7 +25,7 @@
****************************************************************************/
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/ip.h>
#include <nuttx/net/netconfig.h>

View file

@ -28,7 +28,7 @@
#include <sys/types.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>

View file

@ -28,7 +28,7 @@
#include <sys/types.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <netinet/in.h>

View file

@ -26,7 +26,7 @@
#include <nuttx/config.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/kmalloc.h>
#include <nuttx/net/icmpv6.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/net/tcp.h>
#include <nuttx/net/udp.h>

View file

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

View file

@ -27,7 +27,7 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/net/netdev.h>
#include <nuttx/net/net.h>

View file

@ -28,7 +28,7 @@
#include <string.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <errno.h>
#include <nuttx/mm/iob.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/mm/iob.h>
#include <nuttx/net/ipv6ext.h>

View file

@ -31,7 +31,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <stdlib.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>

View file

@ -31,7 +31,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <stdlib.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.h>

View file

@ -30,7 +30,7 @@
#include <sys/ioctl.h>
#include <stdint.h>
#include <stdlib.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <string.h>
#include <errno.h>
#include <netinet/in.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/nuttx.h>
#include <nuttx/queue.h>

View file

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

View file

@ -30,7 +30,7 @@
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
#include <nuttx/debug.h>
#include <nuttx/queue.h>
#include <nuttx/net/net.h>

View file

@ -37,7 +37,7 @@
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/debug.h>
#include "local/local.h"

View file

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

Some files were not shown because too many files have changed in this diff Show more