mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-05 11:30:41 +02:00
test: make peck_dispatch_until_stable() print more useful debug info
This commit is contained in:
parent
f9c83ed9a6
commit
35832d9fe1
2 changed files with 5 additions and 5 deletions
|
|
@ -1085,12 +1085,12 @@ _peck_dispatch_ei(struct peck *peck, int lineno)
|
|||
}
|
||||
|
||||
void
|
||||
_peck_dispatch_until_stable(struct peck *peck, int lineno)
|
||||
_peck_dispatch_until_stable(struct peck *peck, const char *func, int lineno)
|
||||
{
|
||||
int eis = 0, ei = 0;
|
||||
int loop_counter = 0;
|
||||
|
||||
log_debug(peck, "dispatching until stable (line %d) {\n", lineno);
|
||||
log_debug(peck, "dispatching until stable (%s:%d) {\n", func, lineno);
|
||||
peck_indent(peck);
|
||||
|
||||
/* we go two dispatch loops for both ei and EIS before we say it's
|
||||
|
|
@ -1108,7 +1108,7 @@ _peck_dispatch_until_stable(struct peck *peck, int lineno)
|
|||
} while (ei <= 2 || eis <= 2);
|
||||
|
||||
peck_dedent(peck);
|
||||
log_debug(peck, "}\n", lineno);
|
||||
log_debug(peck, "} stable (%s:%d)\n", func, lineno);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -257,10 +257,10 @@ peck_unref(struct peck *peck);
|
|||
* pending that are not processed by the current behaviors.
|
||||
*/
|
||||
void
|
||||
_peck_dispatch_until_stable(struct peck *peck, int lineno);
|
||||
_peck_dispatch_until_stable(struct peck *peck, const char *func, int lineno);
|
||||
|
||||
#define peck_dispatch_until_stable(_p) \
|
||||
_peck_dispatch_until_stable((_p), __LINE__)
|
||||
_peck_dispatch_until_stable((_p), __func__, __LINE__)
|
||||
|
||||
/**
|
||||
* Discard all pending events.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue