The current debug.h assumes that the main printf is used for debugging, but this is bad for applications where printf is used for one purpose, and errors are piped to another stream.
Consider an embedded application running on ARM Cortex M microcontrollers, because the UART can be used for an interactive serial terminal, and the SWO trace pin can be used for error debugging and packet dumping.
A simple solution is to use fprintf instead of printf, or debug.h should be moved into the include folder instead of the src folder so that the implementer is encouraged to modify it.
Sorry about the flood of issues that might appear trivial, but you are pretty much the only open source BT stack solution that I can find.
Also, please enable the issue tracker to allow submitters to set the issue type to enhancement instead of defect.
Comment #1
Posted on Jan 28, 2014 by Swift Ox(No comment was entered for this change.)
Status: New
Labels:
Type-Enhancement
Priority-Medium