mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-18 10:27:00 +01:00
Print CRTC ID instead of liftoff_output pointer address in logs
Easier to read and match with KMS state.
This commit is contained in:
parent
ee3769e678
commit
1452dd7621
1 changed files with 9 additions and 8 deletions
17
alloc.c
17
alloc.c
|
@ -847,8 +847,8 @@ log_reuse(struct liftoff_output *output)
|
||||||
{
|
{
|
||||||
if (output->alloc_reused_counter == 0) {
|
if (output->alloc_reused_counter == 0) {
|
||||||
liftoff_log(LIFTOFF_DEBUG,
|
liftoff_log(LIFTOFF_DEBUG,
|
||||||
"Reusing previous plane allocation on output %p",
|
"Reusing previous plane allocation on output %"PRIu32,
|
||||||
(void *)output);
|
output->crtc_id);
|
||||||
}
|
}
|
||||||
output->alloc_reused_counter++;
|
output->alloc_reused_counter++;
|
||||||
}
|
}
|
||||||
|
@ -856,14 +856,14 @@ log_reuse(struct liftoff_output *output)
|
||||||
static void
|
static void
|
||||||
log_no_reuse(struct liftoff_output *output)
|
log_no_reuse(struct liftoff_output *output)
|
||||||
{
|
{
|
||||||
liftoff_log(LIFTOFF_DEBUG, "Computing plane allocation on output %p",
|
liftoff_log(LIFTOFF_DEBUG, "Computing plane allocation on output %"PRIu32,
|
||||||
(void *)output);
|
output->crtc_id);
|
||||||
|
|
||||||
if (output->alloc_reused_counter != 0) {
|
if (output->alloc_reused_counter != 0) {
|
||||||
liftoff_log(LIFTOFF_DEBUG,
|
liftoff_log(LIFTOFF_DEBUG,
|
||||||
"Stopped reusing previous plane allocation on "
|
"Stopped reusing previous plane allocation on "
|
||||||
"output %p (had reused it %d times)",
|
"output %"PRIu32" (had reused it %d times)",
|
||||||
(void *)output, output->alloc_reused_counter);
|
output->crtc_id, output->alloc_reused_counter);
|
||||||
output->alloc_reused_counter = 0;
|
output->alloc_reused_counter = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -982,8 +982,9 @@ liftoff_output_apply(struct liftoff_output *output, drmModeAtomicReq *req,
|
||||||
}
|
}
|
||||||
|
|
||||||
liftoff_log(LIFTOFF_DEBUG,
|
liftoff_log(LIFTOFF_DEBUG,
|
||||||
"Found plane allocation for output %p (score: %d, candidate planes: %zu, tests: %d):",
|
"Found plane allocation for output %"PRIu32" "
|
||||||
(void *)output, result.best_score, candidate_planes,
|
"(score: %d, candidate planes: %zu, tests: %d):",
|
||||||
|
output->crtc_id, result.best_score, candidate_planes,
|
||||||
device->test_commit_counter);
|
device->test_commit_counter);
|
||||||
|
|
||||||
/* Apply the best allocation */
|
/* Apply the best allocation */
|
||||||
|
|
Loading…
Reference in a new issue