Skip to content

Commit 98a4a59

Browse files
Villemoesdtor
authored andcommitted
Input: elan_i2c - fix wrong %p extension
There's no %px extension. From the context I think the intention was to dump the five bytes which were not as expected, and for that one should use %ph. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent b881d53 commit 98a4a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/mouse/elan_i2c_smbus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int elan_smbus_initialize(struct i2c_client *client)
7070

7171
/* compare hello packet */
7272
if (memcmp(values, check, ETP_SMBUS_HELLOPACKET_LEN)) {
73-
dev_err(&client->dev, "hello packet fail [%*px]\n",
73+
dev_err(&client->dev, "hello packet fail [%*ph]\n",
7474
ETP_SMBUS_HELLOPACKET_LEN, values);
7575
return -ENXIO;
7676
}

0 commit comments

Comments
 (0)