PiyushPatle26 opened a new pull request, #18660:
URL: https://github.com/apache/nuttx/pull/18660

   
   
   *Note: Please adhere to [Contributing 
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
   
   ## 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 canonical 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.
   
   ## 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
   ```
   
   **Test logs**
   <img width="533" height="289" alt="Image" 
src="https://github.com/user-attachments/assets/673d1306-a550-431e-af3b-1cd8236ad94b";
 />
   
     No board runtime testing was performed because this change is a mechanical
     header relocation and include-path update.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to