Replies: 1 comment
-
|
I agree snprintf() should be removed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my system, I'm using a custom implementation of printf() to exclude famous malloc() issues.
So I'm using the CFG_TUSB_DEBUG_PRINTF macros to redirect the printing function. But there is a call of snprintf() in function tu_lookup_find(), which is not redirected with macros. Also #include <stdio.h> is masked from the #ifdef CFG_TUSB_DEBUG_PRINTF definition. So the source cannot be compiled in this case.
I think a redirecting macros for snprintf() should also be included as possibility. Or it should be changed with some code which not calls stdio libraries...
Beta Was this translation helpful? Give feedback.
All reactions