driver: i2c: MEC15xx: improve debug logging
Add extra parameters for logging to improve debugging Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
This commit is contained in:
parent
fad437973c
commit
b22b206438
1 changed files with 12 additions and 12 deletions
|
@ -425,8 +425,8 @@ static int i2c_xec_poll_write(const struct device *dev, struct i2c_msg msg,
|
|||
ret = wait_bus_free(dev);
|
||||
if (ret) {
|
||||
data->error_seen = 1;
|
||||
LOG_DBG("%s: %s wait_bus_free failure",
|
||||
__func__, dev->name);
|
||||
LOG_DBG("%s: %s wait_bus_free failure %d",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -450,8 +450,8 @@ static int i2c_xec_poll_write(const struct device *dev, struct i2c_msg msg,
|
|||
|
||||
default:
|
||||
data->error_seen = 1;
|
||||
LOG_ERR("%s: %s wait_comp error for addr send",
|
||||
__func__, dev->name);
|
||||
LOG_ERR("%s: %s wait_comp error %d for addr send",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -478,8 +478,8 @@ static int i2c_xec_poll_write(const struct device *dev, struct i2c_msg msg,
|
|||
|
||||
default:
|
||||
data->error_seen = 1;
|
||||
LOG_ERR("%s: %s wait_completion error for data send",
|
||||
__func__, dev->name);
|
||||
LOG_ERR("%s: %s wait_completion error %d for data send",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -560,8 +560,8 @@ static int i2c_xec_poll_read(const struct device *dev, struct i2c_msg msg,
|
|||
ret = wait_bus_free(dev);
|
||||
if (ret) {
|
||||
data->error_seen = 1;
|
||||
LOG_DBG("%s: %s wait_bus_free failure",
|
||||
__func__, dev->name);
|
||||
LOG_DBG("%s: %s wait_bus_free failure %d",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -595,8 +595,8 @@ static int i2c_xec_poll_read(const struct device *dev, struct i2c_msg msg,
|
|||
|
||||
default:
|
||||
data->error_seen = 1;
|
||||
LOG_ERR("%s: %s wait_completion error for address send",
|
||||
__func__, dev->name);
|
||||
LOG_ERR("%s: %s wait_completion error %d for address send",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -628,8 +628,8 @@ static int i2c_xec_poll_read(const struct device *dev, struct i2c_msg msg,
|
|||
|
||||
default:
|
||||
data->error_seen = 1;
|
||||
LOG_ERR("%s: %s wait_completion error for data send",
|
||||
__func__, dev->name);
|
||||
LOG_ERR("%s: %s wait_completion error %d for data send",
|
||||
__func__, dev->name, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue