mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 14:40:26 +01:00
tablet: log the pressure offset's percentage once we detected it
Saying the offset is e.g. 15% is more informative to the user than a vauge "we detected something". Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1340>
This commit is contained in:
parent
60c5fdbc2f
commit
66f2d121ee
1 changed files with 2 additions and 1 deletions
|
|
@ -1762,8 +1762,9 @@ detect_pressure_offset(struct tablet_dispatch *tablet,
|
|||
}
|
||||
|
||||
evdev_log_info(device,
|
||||
"Pressure offset detected on tool %s (serial %#x). "
|
||||
"Pressure offset of %d%% detected on tool %s (serial %#x). "
|
||||
"See %s/tablet-support.html\n",
|
||||
(int)(pressure_offset_as_double(offset) * 100),
|
||||
tablet_tool_type_to_string(tool->type),
|
||||
tool->serial,
|
||||
HTTP_DOC_LINK);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue