You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "PiyushPatle26 (via GitHub)" <gi...@apache.org> on 2026/04/01 00:05:07 UTC

Re: [I] Move debug.h from include to include/nuttx [nuttx]

PiyushPatle26 commented on issue #8986:
URL: https://github.com/apache/nuttx/issues/8986#issuecomment-4166483119

   Hello @xiaoxiang781216 @alancassis @pkarashchenko  
   I've worked on this issue and have a fix ready.
   
   Changes made:
   - Added `include/nuttx/debug.h` as the new standard location
   - Replaced `include/debug.h` with a backward-compatibility shim that emits a `#warning` and re-includes `<nuttx/debug.h>`, so out-of-tree code continues to build while migrating
   - Updated all in-tree `#include <debug.h>` → `#include <nuttx/debug.h>` across ~5720 files in `arch/, boards/, drivers/, fs/, libs/, net/, sched/, wireless/ and documentation`
   - Also made this changes for nuttx-apps repository
   
   I have also tested with `sim:nsh` configuration:
   ```
   ./tools/configure.sh sim:nsh
   make -j$(nproc)
   ./nuttx
   ```
   Build was complete with no errors. Also the ostest passed:
   
   <img width="533" height="289" alt="Image" src="https://github.com/user-attachments/assets/673d1306-a550-431e-af3b-1cd8236ad94b" />
   
   Should I go ahead and open a PR for both nuttx and nuttx-apps?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org