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

@ -205,7 +205,7 @@ static int fxas21002_init(struct device *dev)
}
if (whoami != config->whoami) {
SYS_LOG_ERR("WHOAMI value received 0x%x, expected 0x%x",
SYS_LOG_ERR("WHOAMI value received 0x%" PRIx8 ", expected 0x%x",
whoami, config->whoami);
return -EIO;
}