diff options
author | Andrew Chew <achew@nvidia.com> | 2011-06-23 20:19:40 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 17:53:25 -0300 |
commit | 5fec8b900237ecc8ba1bbc3d051a655d43b6881c (patch) | |
tree | 3ab56f49cc7ed0b64d6ac968c8760dcbfdc4927d /drivers/media/video/ov9740.c | |
parent | c6aac9fcdd6d92cf89d3ce41fcc10e75fbdde9df (diff) | |
download | op-kernel-dev-5fec8b900237ecc8ba1bbc3d051a655d43b6881c.zip op-kernel-dev-5fec8b900237ecc8ba1bbc3d051a655d43b6881c.tar.gz |
[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 <achew@nvidia.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov9740.c')
-rw-r--r-- | drivers/media/video/ov9740.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/ov9740.c b/drivers/media/video/ov9740.c index 96811e4..d5c9061 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; } |