mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-26 09:40:23 +01:00
test: make the dispatch looping easier to understand in the debug logs
This commit is contained in:
parent
8261415330
commit
ab55d6646b
1 changed files with 5 additions and 0 deletions
|
|
@ -874,6 +874,7 @@ void
|
|||
_peck_dispatch_until_stable(struct peck *peck, int lineno)
|
||||
{
|
||||
int eis = 0, ei = 0;
|
||||
int loop_counter = 0;
|
||||
|
||||
log_debug(peck, "dispatching until stable (line %d) {\n", lineno);
|
||||
peck_indent(peck);
|
||||
|
|
@ -884,8 +885,12 @@ _peck_dispatch_until_stable(struct peck *peck, int lineno)
|
|||
* yet, so we can get stuck if we just wait for one.
|
||||
*/
|
||||
do {
|
||||
log_debug(peck, "entering dispatch loop %d {\n", loop_counter++);
|
||||
peck_indent(peck);
|
||||
eis = _peck_dispatch_eis(peck, lineno) ? 0 : eis + 1;
|
||||
ei = _peck_dispatch_ei(peck, lineno) ? 0 : ei + 1;
|
||||
peck_dedent(peck);
|
||||
log_debug(peck, "} done: ei %d|eis %d\n", ei, eis);
|
||||
} while (ei <= 2 || eis <= 2);
|
||||
|
||||
peck_dedent(peck);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue