Commit a13b9a79 authored by Guido Gunther's avatar Guido Gunther

mxc: ov5640: Print error type

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 90bd2742
......@@ -821,8 +821,8 @@ static int ov5640_write_reg(struct ov5640_dev *sensor, u16 reg, u8 val)
ret = i2c_transfer(client->adapter, &msg, 1);
if (ret < 0) {
dev_err(&client->dev, "%s: error: reg=%x, val=%x\n",
__func__, reg, val);
dev_err(&client->dev, "%s: error: reg=0x%x, val=0x%x: %d\n",
__func__, reg, val, ret);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment