From b941c3eb03a4cfb657593a2d2af901370b2b5cdf Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 12 Aug 2021 18:36:52 +0200 Subject: [PATCH] Log number of layers in output_log_layers This can help figuring out if there are disabled layers. --- output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/output.c b/output.c index 6893d21..d34c832 100644 --- a/output.c +++ b/output.c @@ -81,7 +81,8 @@ void output_log_layers(struct liftoff_output *output) { return; } - liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32":", output->crtc_id); + liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32" (%zu total):", + output->crtc_id, liftoff_list_length(&output->layers)); liftoff_list_for_each(layer, &output->layers, link) { if (layer->force_composition) { liftoff_log(LIFTOFF_DEBUG, " Layer %p "