From: Andrew Chew Date: Thu, 23 Jun 2011 23:19:40 +0000 (-0300) Subject: [media] V4L: ov9740: Correct print in ov9740_reg_rmw() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5fec8b900237ecc8ba1bbc3d051a655d43b6881c;p=openwrt%2Fstaging%2Fblogic.git [media] V4L: ov9740: Correct print in ov9740_reg_rmw() The register width of the ov9740 is 16-bits, so correct the debug print to reflect this. Signed-off-by: Andrew Chew Signed-off-by: Guennadi Liakhovetski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ov9740.c b/drivers/media/video/ov9740.c index 96811e42993d..d5c906147e78 100644 --- a/drivers/media/video/ov9740.c +++ b/drivers/media/video/ov9740.c @@ -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; }