mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 01:58:01 +02:00
Downgrade the ECANCELED warning to a mere info
ECANCELED is used for any time the other end disconnects, so it's not really an error. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ce51392241
commit
b717837b14
2 changed files with 7 additions and 2 deletions
|
|
@ -717,8 +717,11 @@ error:
|
|||
"DISCONNECTED",
|
||||
"DISCONNECTING",
|
||||
};
|
||||
if (rc)
|
||||
if (rc == -ECANCELED)
|
||||
log_info(ei, "Disconnected\n");
|
||||
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]);
|
||||
|
|
|
|||
|
|
@ -665,7 +665,9 @@ error:
|
|||
"CONNECTED",
|
||||
"DISCONNECTED",
|
||||
};
|
||||
if (rc)
|
||||
if (rc == -ECANCELED)
|
||||
log_info(eis_client_parent(client), "Disconnected\n");
|
||||
else if (rc)
|
||||
log_warn(eis_client_parent(client), "Client error: %s\n",
|
||||
strerror(-rc));
|
||||
if (old_state != client->state) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue