Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rasmus Villemoes and committed by
Dmitry Torokhov
98a4a59e b881d537

+1 -1
+1 -1
drivers/input/mouse/elan_i2c_smbus.c
··· 70 70 71 71 /* compare hello packet */ 72 72 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", 74 74 ETP_SMBUS_HELLOPACKET_LEN, values); 75 75 return -ENXIO; 76 76 }