Skip to content

Thread safe debug logging #8064

Answered by bertmelis
bertmelis asked this question in Q&A
Discussion options

You must be logged in to vote

I've come up with this, don't know if it's the most elegant/straightforward/...

#define my_log_i(...) vPortEnterCritical();log_i(__VA_ARGS__);vPortExitCritical()
// the same for other logging levels

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bertmelis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant