drivers/sensor: Convert formatter strings to use PRI defines

To allow for various libc implementations (like newlib) in which the way
various {u}int{8,16,32}_t types are defined vary between both libc
implementations and across architectures we need to utilize the PRI
defines.

Change-Id: I69e60e3823028389b314adaf6e279fd47fde1182
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-04-17 10:39:05 -05:00
commit e60af3be66
13 changed files with 23 additions and 22 deletions

View file

@ -276,10 +276,10 @@ static int lsm9ds0_gyro_init_chip(struct device *dev)
goto err_poweroff;
}
if (chip_id != LSM9DS0_GYRO_VAL_WHO_AM_I_G) {
SYS_LOG_DBG("invalid chip id 0x%x", chip_id);
SYS_LOG_DBG("invalid chip id 0x%" PRIx8, chip_id);
goto err_poweroff;
}
SYS_LOG_DBG("chip id 0x%x", chip_id);
SYS_LOG_DBG("chip id 0x%" PRIx8, chip_id);
if (lsm9ds0_gyro_set_fs_raw(dev, LSM9DS0_GYRO_DEFAULT_FULLSCALE) < 0) {
SYS_LOG_DBG("failed to set full-scale");