mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-26 21:59:18 +01:00
Skip layer debug early
If the verbosity is low we can skip logging layer information early and do not need to run the loop.
This commit is contained in:
parent
d68b1fc8d7
commit
375a8123d2
1 changed files with 4 additions and 0 deletions
4
output.c
4
output.c
|
@ -59,6 +59,10 @@ void output_log_layers(struct liftoff_output *output) {
|
|||
struct liftoff_layer *layer;
|
||||
size_t i;
|
||||
|
||||
if (!log_has(LIFTOFF_DEBUG)) {
|
||||
return;
|
||||
}
|
||||
|
||||
liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32":", output->crtc_id);
|
||||
liftoff_list_for_each(layer, &output->layers, link) {
|
||||
liftoff_log(LIFTOFF_DEBUG, " Layer %p:", (void *)layer);
|
||||
|
|
Loading…
Reference in a new issue