[media] V4L: ov9740: Correct print in ov9740_reg_rmw()
authorAndrew Chew <achew@nvidia.com>
Thu, 23 Jun 2011 23:19:40 +0000 (20:19 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 27 Jul 2011 20:53:25 +0000 (17:53 -0300)
The register width of the ov9740 is 16-bits, so correct the debug print
to reflect this.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/ov9740.c

index 96811e42993db00551879c649f458e79cf927793..d5c906147e78d74ec837b811f688a7dff4a3246f 100644 (file)
@@ -537,7 +537,8 @@ static int ov9740_reg_rmw(struct i2c_client *client, u16 reg, u8 set, u8 unset)
        ret = ov9740_reg_read(client, reg, &val);
        if (ret < 0) {
                dev_err(&client->dev,
-                       "[Read]-Modify-Write of register %02x failed!\n", reg);
+                       "[Read]-Modify-Write of register 0x%04x failed!\n",
+                       reg);
                return ret;
        }
 
@@ -547,7 +548,8 @@ static int ov9740_reg_rmw(struct i2c_client *client, u16 reg, u8 set, u8 unset)
        ret = ov9740_reg_write(client, reg, val);
        if (ret < 0) {
                dev_err(&client->dev,
-                       "Read-Modify-[Write] of register %02x failed!\n", reg);
+                       "Read-Modify-[Write] of register 0x%04x failed!\n",
+                       reg);
                return ret;
        }