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:
Andrzej Głąbek 2021-04-19 15:37:44 +02:00 committed by Carles Cufí
commit 8e9884f937
2 changed files with 2 additions and 2 deletions

View file

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

View file

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