[–] tptacek 16y ago ↗ Nice, but next time use (counter = (counter + 1) % SIZE) instead of burying an if() statement in a macro. [–] DenisM 16y ago ↗ printf will do a lot more damage than the if.In my logging system I write the data to the buffer in the natural format (without conversion), preceded by a type-marker. Then I have a tool to unpack the data entries and format them into text.
[–] DenisM 16y ago ↗ printf will do a lot more damage than the if.In my logging system I write the data to the buffer in the natural format (without conversion), preceded by a type-marker. Then I have a tool to unpack the data entries and format them into text.
2 comments
[ 5.1 ms ] story [ 17.4 ms ] threadIn my logging system I write the data to the buffer in the natural format (without conversion), preceded by a type-marker. Then I have a tool to unpack the data entries and format them into text.