Skip to content

Commit

Permalink
Input: elan_i2c - fix wrong %p extension
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rasmus Villemoes authored and Dmitry Torokhov committed Feb 6, 2015
1 parent b881d53 commit 98a4a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/elan_i2c_smbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static int elan_smbus_initialize(struct i2c_client *client)

/* compare hello packet */
if (memcmp(values, check, ETP_SMBUS_HELLOPACKET_LEN)) {
dev_err(&client->dev, "hello packet fail [%*px]\n",
dev_err(&client->dev, "hello packet fail [%*ph]\n",
ETP_SMBUS_HELLOPACKET_LEN, values);
return -ENXIO;
}
Expand Down

0 comments on commit 98a4a59

Please sign in to comment.