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:
Peter Hutterer 2025-10-23 12:54:47 +10:00 committed by Marge Bot
parent 60c5fdbc2f
commit 66f2d121ee

View file

@ -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);