CH_DBG_TRACE_MASK inverted logic?

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
faisal
Posts: 382
Joined: Wed Jul 19, 2017 12:44 am
Has thanked: 45 times
Been thanked: 62 times

CH_DBG_TRACE_MASK inverted logic?

Post by faisal »

Not sure if this is a feature or a bug, but it sure is confusing.

It seems that CH_DBG_TRACE_MASK is a mask of events to *DISABLE*, as the buffer.suspend variable gets initialized to this. If this is the intended logic, perhaps the comments/documentation can describe this more clearly.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: CH_DBG_TRACE_MASK inverted logic?

Post by Giovanni »

bump
Post Reply