Skip to content

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

Merged
acassis merged 2 commits intoapache:masterfrom
PiyushPatle26:include/refactor-debug-h-location
Apr 7, 2026
Merged

include/debug.h: Move to include/nuttx/debug.h#18660
acassis merged 2 commits intoapache:masterfrom
PiyushPatle26:include/refactor-debug-h-location

Conversation

@PiyushPatle26
Copy link
Copy Markdown
Contributor

@PiyushPatle26 PiyushPatle26 commented Apr 1, 2026

Note: Please adhere to Contributing Guidelines.

Summary

Move the NuttX-specific debug.h header from the top-level include/
directory to include/nuttx/debug.h, and update in-tree includes to use the new path.

debug.h is not a POSIX or standard C header. Keeping it at the top level
creates avoidable naming conflicts with external projects that also provide a
debug.h. Moving it under include/nuttx/ aligns it with NuttX conventions for non-standard headers.

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.

Impact

  • Moves the header to include/nuttx/debug.h.
  • Updates in-tree references to include <nuttx/debug.h>.
  • Keeps backward compatibility for existing code that still includes <debug.h>.
  • Emits a deprecation warning for the old include path to encourage migration.
  • No intended functional change beyond header location and include path cleanup.

Other PR for nuttx_apps

Testing

Tested on Ubuntu Linux in the local NuttX tree.

Host:

  • Ubuntu Linux

Target:

  • native NuttX

Test application:

  • ostest

I have also tested with sim:nsh configuration:

./tools/configure.sh sim:nsh
make -j$(nproc)
./nuttx
>nsh ostest

Test logs
Image

No board runtime testing was performed because this change is a mechanical
header relocation and include-path update.

Fixes #8986

@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Arch: arm64 Issues related to ARM64 (64-bit) architecture Arch: avr Issues related to all AVR(8-bit or 32-bit) architectures Arch: ceva Issues related to CEVA architecture Arch: hc Issues related to HC architecture Arch: mips Issues related to the MIPS architecture Arch: openrisc Issues related to the OpenRISC architecture Arch: renesas Issues related to the Renesas chips Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: simulator Issues related to the SIMulator Arch: sparc Issues related to the SPARC architecture Arch: tricore Issues related to the TriCore architecture from Infineon Arch: x86 Issues related to the x86 architecture Arch: x86_64 Issues related to the x86_64 architecture Arch: xtensa Issues related to the Xtensa architecture Arch: z16 Issues related to the Z16 architecture Arch: z80 Issues related to the Z80 architecture Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Area: Audio Board: arm labels Apr 1, 2026
@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch from 9921de7 to 968b6ed Compare April 1, 2026 16:09
@linguini1
Copy link
Copy Markdown
Contributor

linguini1 commented Apr 1, 2026

Doesn't the warning indicate that you haven't migrated all places to use the new header location?

@linguini1 I think the warning is from checkpatch on the modified files, not from a scan of remaining #include <debug.h> usages.

No, the warnings you pasted in your last comment are from compilation.

If I understand correctly, this warning is inside the legacy debug.h header you kept for backwards compatibility? So if it's appearing, it means that header is still getting included somewhere.

One inclusion is in nsh_console.c. Maybe you can open a twin PR to nuttx-apps to replace the includes there too

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

@linguini1 I’ve already submitted the PR for nuttx_apps. Regarding the warnings, you’re right.

My understanding is that the CI is failing because it checks against the current master of nuttx_apps, which doesn’t yet include the corresponding changes.

@linguini1
Copy link
Copy Markdown
Contributor

@linguini1 I’ve already submitted the PR for nuttx_apps. Regarding the warnings, you’re right.

My bad, didn't realize! Could you please link to it in the description of this PR?

My understanding is that the CI is failing because it checks against the current master of nuttx_apps, which doesn’t yet include the corresponding changes.

Hmmm, usually warnings do not cause CI to fail, but I'm on mobile right now so I can't check to give a reason.

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

@linguini1 I have updated the description

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

Hey @linguini1,
can you now have a look at the CI failure

@simbit18
Copy link
Copy Markdown
Contributor

simbit18 commented Apr 2, 2026

Hi @PiyushPatle26 see here

https://github.com/apache/nuttx/actions/runs/23870320029/job/69600320022?pr=18660

../nuttx/tools/checkpatch.sh -c -u -m -g  efdbdfe4098c3b8814741206ed897ccdcecf192b..HEAD
Used config files:
    1: .codespellrc
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/at32/at32_pwm.c:70: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:263: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:449: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:516: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:577: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:639: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:703: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:708: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:715: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:716: Transeiver ==> Transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:716: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:727: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:789: transeiver ==> transceiver
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:147:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:153:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:159:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:165:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:148:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:154:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:160:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:166:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/lc823450/lc823450_sdc.c:5:79: error: Long line found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c:5:78: error: Long line found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:140:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:140:26: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:141:28: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:142:10: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:149:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:150:42: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:163:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:164:41: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:202:12: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:202:45: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:221:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:225:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:227:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:228:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:233:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:234:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:235:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:237:28: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:237:41: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:244:36: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:16: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:26: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:48: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:56: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:300:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:23: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:40: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:57: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:22: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:39: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:56: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:320:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:339:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:344:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:349:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:354:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:359:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:362:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:398:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:407:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:415:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:345:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:350:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:355:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:360:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:365:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:370:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/start.c:171:6: error: Mixed case identifier found
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32/stm32_pwm.c:71: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32f7/stm32_pwm.c:59: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32h5/stm32_pwm.c:64: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32h7/stm32_pwm.c:66: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32l4/stm32l4_pwm.c:68: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:319: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:319: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:327: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:328: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:346: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:962: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:968: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:972: shold ==> should, hold, sold
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1724:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1730:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1736:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1742:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:82:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:86:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:86:22: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:90:18: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:90:27: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:96:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:96:18: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:100:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:100:21: error: Mixed case identifier found
/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_autoleds.c:2:83: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_bringup.c:2:82: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_reset.c:2:80: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/drivers/audio/vs1053.c:376: mulit ==> multi
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/mtd_config_nvs.c:787: Calid ==> Valid, Canid
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/ramtron.c:525: fram ==> frame, gram, dram, cram
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/ramtron.c:526: fram ==> frame, gram, dram, cram
/home/runner/work/nuttx/nuttx/nuttx/drivers/wireless/spirit/lib/spirit_csma.c:171: bu ==> by, be, but, bug, bun, bud, buy, bum
/home/runner/work/nuttx/nuttx/nuttx/drivers/wireless/spirit/lib/spirit_csma.c:175: bu ==> by, be, but, bug, bun, bud, buy, bum
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:861: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:947: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:949: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1009: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1048: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1056: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1058: clen ==> clean, clan
Warning: /home/runner/work/nuttx/nuttx/nuttx/include/debug.h:28:1: warning: #include outside of 'Included Files' section
Some checks failed. For contributing guidelines, see:
  https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md
Error: Process completed with exit code 1.

  1. Contributing Templates.
    https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md#2-contributing-templates

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

Hi @PiyushPatle26 see here

https://github.com/apache/nuttx/actions/runs/23870320029/job/69600320022?pr=18660

../nuttx/tools/checkpatch.sh -c -u -m -g  efdbdfe4098c3b8814741206ed897ccdcecf192b..HEAD
Used config files:
    1: .codespellrc
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/at32/at32_pwm.c:70: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:263: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:449: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:516: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:577: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:639: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:703: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:708: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:715: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:716: Transeiver ==> Transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:716: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:727: transeiver ==> transceiver
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/c5471/c5471_ethernet.c:789: transeiver ==> transceiver
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:147:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:153:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:159:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imx9/imx9_timerisr.c:165:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:148:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:154:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:160:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/imxrt/imxrt_timerisr.c:166:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/lc823450/lc823450_sdc.c:5:79: error: Long line found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c:5:78: error: Long line found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:140:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:140:26: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:141:28: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:142:10: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:149:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:150:42: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:163:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:164:41: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:202:12: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:202:45: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:221:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:225:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:227:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:228:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:233:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:234:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:235:6: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:237:28: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:237:41: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:244:36: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:16: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:26: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:48: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:246:56: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:300:15: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:23: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:40: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:303:57: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:22: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:39: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:309:56: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phy62xx_ble.c:320:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:339:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:344:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:349:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:354:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:359:14: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:362:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:398:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:407:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_gpio.c:415:9: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:345:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:350:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:355:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:360:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:365:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/phyplus_tim.c:370:17: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/phy62xx/start.c:171:6: error: Mixed case identifier found
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32/stm32_pwm.c:71: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32f7/stm32_pwm.c:59: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32h5/stm32_pwm.c:64: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32h7/stm32_pwm.c:66: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/stm32l4/stm32l4_pwm.c:68: outptus ==> outputs
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:319: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:319: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:327: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:328: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:346: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:962: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:968: shold ==> should, hold, sold
/home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_adclib.c:972: shold ==> should, hold, sold
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1724:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1730:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1736:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/arch/arm/src/tiva/common/tiva_hciuart.c:1742:6: error: Missing whitespace after keyword
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:82:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:86:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:86:22: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:90:18: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:90:27: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:96:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:96:18: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:100:2: error: Mixed case identifier found
Error: /home/runner/work/nuttx/nuttx/nuttx/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_spifilib_init.c:100:21: error: Mixed case identifier found
/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_autoleds.c:2:83: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_bringup.c:2:82: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/boards/risc-v/esp32c3-legacy/esp32c3-legacy-devkit-rust-1/src/esp32c3_reset.c:2:80: info: Skipping checking line 2: path file

/home/runner/work/nuttx/nuttx/nuttx/drivers/audio/vs1053.c:376: mulit ==> multi
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/mtd_config_nvs.c:787: Calid ==> Valid, Canid
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/ramtron.c:525: fram ==> frame, gram, dram, cram
/home/runner/work/nuttx/nuttx/nuttx/drivers/mtd/ramtron.c:526: fram ==> frame, gram, dram, cram
/home/runner/work/nuttx/nuttx/nuttx/drivers/wireless/spirit/lib/spirit_csma.c:171: bu ==> by, be, but, bug, bun, bud, buy, bum
/home/runner/work/nuttx/nuttx/nuttx/drivers/wireless/spirit/lib/spirit_csma.c:175: bu ==> by, be, but, bug, bun, bud, buy, bum
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:861: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:947: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:949: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1009: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1048: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1056: clen ==> clean, clan
/home/runner/work/nuttx/nuttx/nuttx/fs/cromfs/fs_cromfs.c:1058: clen ==> clean, clan
Warning: /home/runner/work/nuttx/nuttx/nuttx/include/debug.h:28:1: warning: #include outside of 'Included Files' section
Some checks failed. For contributing guidelines, see:
  https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md
Error: Process completed with exit code 1.

This failures appear to be pre-existing issues in files not touched by this PR (e.g., c5471_ethernet.c, phy62xx_ble.c, I have only made the include path changes here). Happy to address them in a separate cleanup PR if preferred.

@linguini1
Copy link
Copy Markdown
Contributor

linguini1 commented Apr 2, 2026

You'll need to fix them in this PR, ideally as a separate commit (?)

The style checking tools only see what files you edited (which is a lot of them because of the header change), so existing formatting issues are being reported. It's not a result of your changes, but it would be best just to fix them in this PR.

Also, if possible, use the "re-request review" button to get my review again instead of the @ mentions (unless it's a reply to something specific); it keeps the notifications in my inbox instead of push notifications :)

@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch from 0cb2a03 to 9391494 Compare April 2, 2026 17:00
@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch from 9391494 to 558048a Compare April 2, 2026 18:15
@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch 2 times, most recently from ae4ce89 to c5acdb8 Compare April 3, 2026 16:33
@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

@xiaoxiang781216 i have done the changes, anything else we must change ? Or the PR is ready to be merged

@xiaoxiang781216
Copy link
Copy Markdown
Contributor

@xiaoxiang781216 i have done the changes, anything else we must change ? Or the PR is ready to be merged

please fix the conflict

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>
@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch from c5acdb8 to 034fc05 Compare April 6, 2026 09:40
@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

@xiaoxiang781216 fixed the conflict

Fixed copespell errors, for CI sucess!

Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
@PiyushPatle26 PiyushPatle26 force-pushed the include/refactor-debug-h-location branch from 034fc05 to 09b70c2 Compare April 6, 2026 10:42
Copy link
Copy Markdown
Contributor

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this is merged, rebase your NuttX apps PR and hopefully everything there should pass. Then we can merge it too!

Thanks!

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

Once this is merged, rebase your NuttX apps PR and hopefully everything there should pass. Then we can merge it too!

Thanks!

Will do , Thanks a lot for guidance

@PiyushPatle26
Copy link
Copy Markdown
Contributor Author

@acassis can you merge this PR now ?

@simbit18
Copy link
Copy Markdown
Contributor

simbit18 commented Apr 7, 2026

@PiyushPatle26 Given that this PR affects many files prior to the merge,
I strongly recommend running a build test using the two repositories in question.
We have this new tool which can be useful for determining in advance whether further changes are needed

https://github.com/NuttX/manual-nuttx-ci

Here’s how to use it

#18568

data to be entered

Nuttx repository: PiyushPatle26/nuttx
    Nuttx branch: include/refactor-debug-h-location
 Apps repository: PiyushPatle26/nuttx-apps
     Apps branch: include/refactor-debug-h-location-apps
    Architecture: all
   Host platform: all

@linguini1 @lupyuen @acassis

@acassis acassis merged commit 13d0e64 into apache:master Apr 7, 2026
68 of 118 checks passed
@acassis
Copy link
Copy Markdown
Contributor

acassis commented Apr 7, 2026

Thank you very much! @PiyushPatle26

@PiyushPatle26 PiyushPatle26 deleted the include/refactor-debug-h-location branch April 7, 2026 10:57
@linguini1
Copy link
Copy Markdown
Contributor

Great tool @simbit18 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Arch: arm64 Issues related to ARM64 (64-bit) architecture Arch: avr Issues related to all AVR(8-bit or 32-bit) architectures Arch: ceva Issues related to CEVA architecture Arch: hc Issues related to HC architecture Arch: mips Issues related to the MIPS architecture Arch: openrisc Issues related to the OpenRISC architecture Arch: renesas Issues related to the Renesas chips Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: simulator Issues related to the SIMulator Arch: sparc Issues related to the SPARC architecture Arch: tricore Issues related to the TriCore architecture from Infineon Arch: x86 Issues related to the x86 architecture Arch: x86_64 Issues related to the x86_64 architecture Arch: xtensa Issues related to the Xtensa architecture Arch: z16 Issues related to the Z16 architecture Arch: z80 Issues related to the Z80 architecture Area: Audio Board: arm Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move debug.h from include to include/nuttx

5 participants