Skip to content

Commit 3152301

Browse files
jigpuJiri Kosina
authored andcommitted
HID: wacom: Improve warning for tablets falling back to default resolution
When we encounter a usage mapped to ABS_X or ABS_Y which has a calculated resolution of 0, we want to warn the user of this before setting a default value. The previous language used the word "usage" but then printed out the value of a "code" instead. We can improve this. Signed-off-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6b5faec commit 3152301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/wacom_wac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,8 +1904,8 @@ static void wacom_map_usage(struct input_dev *input, struct hid_usage *usage,
19041904
if ((code == ABS_X || code == ABS_Y) && !resolution) {
19051905
resolution = WACOM_INTUOS_RES;
19061906
hid_warn(input,
1907-
"Wacom usage (%d) missing resolution \n",
1908-
code);
1907+
"Using default resolution for axis type 0x%x code 0x%x\n",
1908+
type, code);
19091909
}
19101910
input_abs_set_res(input, code, resolution);
19111911
break;

0 commit comments

Comments
 (0)