Skip to content

Commit

Permalink
[media] V4L: ov9740: Correct print in ov9740_reg_rmw()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Chew authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent c6aac9f commit 5fec8b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/media/video/ov9740.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 5fec8b9

Please sign in to comment.