diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-11-17 11:52:25 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-02-29 14:30:14 +0100 |
commit | a89d22c0f08edda927ce62b071f17bd7e5edc5c6 (patch) | |
tree | a79be82af3c6b4ea5888a10b109be7f4c80e08fd /tests/Makefile.am | |
parent | de6dd72dbbbcc7facf25c4a2521c71f653c7b1b2 (diff) |
log: Add conditional logging based on log_check_level
Currently the LOGP/DEBUGP arguments are always evaluated even if
no logging will happen at all. This can be expensive, for instance
if hexdumps or pretty printed object names are generated. This causes
high base load especially on embedded devices and is a major part of
CPU usage e.g. of the osmo-pcu.
This commit uses the log_check_level function to avoid the evaluation
of the parameters if it is known in advance, that no logging entry
will be generated.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/Makefile.am')
0 files changed, 0 insertions, 0 deletions