Input: elan_i2c - fix wrong %p extension
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 6 Feb 2015 16:39:20 +0000 (08:39 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Feb 2015 23:32:18 +0000 (15:32 -0800)
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>
drivers/input/mouse/elan_i2c_smbus.c

index 5cd4a05..06a2bcd 100644 (file)
@@ -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;
        }