drivers: i2c: nrfx: Print nrfx error codes as hexadecimal numbers
so that it is easier to find their meaning in nrfx_error.h Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
cb86a2b306
commit
8e9884f937
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ static int i2c_nrfx_twi_transfer(const struct device *dev,
|
|||
|
||||
res = get_dev_data(dev)->res;
|
||||
if (res != NRFX_SUCCESS) {
|
||||
LOG_ERR("Error %d occurred for message %d", res, i);
|
||||
LOG_ERR("Error 0x%08X occurred for message %d", res, i);
|
||||
ret = -EIO;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -159,7 +159,7 @@ static int i2c_nrfx_twim_transfer(const struct device *dev,
|
|||
res = get_dev_data(dev)->res;
|
||||
|
||||
if (res != NRFX_SUCCESS) {
|
||||
LOG_ERR("Error %d occurred for message %d", res, i);
|
||||
LOG_ERR("Error 0x%08X occurred for message %d", res, i);
|
||||
ret = -EIO;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue