mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-15 08:00:31 +01:00
libei: only log the state when it changed
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
57fc23c67d
commit
f068ddf2a8
1 changed files with 4 additions and 3 deletions
|
|
@ -827,9 +827,10 @@ connection_dispatch(struct source *source, void *userdata)
|
|||
else if (rc)
|
||||
log_warn(ei, "Connnection error: %s\n", strerror(-rc));
|
||||
|
||||
log_debug(ei, "Connnection dispatch: %s -> %s\n",
|
||||
states[old_state],
|
||||
states[ei->state]);
|
||||
if (old_state != ei->state)
|
||||
log_debug(ei, "Connnection dispatch: %s -> %s\n",
|
||||
states[old_state],
|
||||
states[ei->state]);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue