Cleanup error.h __lttng_print() used for message printing
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2016 15:57:45 +0000 (11:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 May 2016 18:20:48 +0000 (14:20 -0400)
commit062749c8dd2d454311213fc2dd0c7651f7e01314
tree839a48dc4b11e052454e201fce4e21fd247903af
parent824a68af408cb3ef4c2762359f6d629c4fe11aa4
Cleanup error.h __lttng_print() used for message printing

The loglevels have never really been a mask, and it is useless to try to
use them as masks, because the compiler statically knows the value of
the loglevel requested, and can therefore optimise away all the logic.

This takes care of Coverity warning about mixed bitwise and boolean
logic, which was technically correct, but more complex than needed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/error.h
This page took 0.025324 seconds and 4 git commands to generate.