Skip to content

Commit

Permalink
i2c-davinci: Move dev_dbg statement for more output
Browse files Browse the repository at this point in the history
Previously the dev_dbg only printed if no error.
Printing also on an error is more useful

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Troy Kisky authored and Jean Delvare committed Jul 14, 2008
1 parent cc99ff7 commit d868caa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/i2c/busses/i2c-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,11 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)

for (i = 0; i < num; i++) {
ret = i2c_davinci_xfer_msg(adap, &msgs[i], (i == (num - 1)));
dev_dbg(dev->dev, "%s [%d/%d] ret: %d\n", __func__, i + 1, num,
ret);
if (ret < 0)
return ret;
}

dev_dbg(dev->dev, "%s:%d ret: %d\n", __func__, __LINE__, ret);

return num;
}

Expand Down

0 comments on commit d868caa

Please sign in to comment.