mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 13:17:49 +00:00
lsm9ds1.c: fix printf warnings
This commit is contained in:
parent
7109fd6121
commit
8665acaffa
1 changed files with 4 additions and 3 deletions
|
|
@ -1367,14 +1367,16 @@ static int lsm9ds1_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||
|
||||
case SNIOC_SETSAMPLERATE:
|
||||
ret = priv->ops->setsamplerate(priv, (uint32_t)arg);
|
||||
sninfo("sample rate: %08x ret: %d\n", (uint32_t)arg, ret);
|
||||
sninfo("sample rate: %08" PRId32 " ret: %d\n",
|
||||
(uint32_t)arg, ret);
|
||||
break;
|
||||
|
||||
/* Set the full-scale range. Arg: uint32_t value. */
|
||||
|
||||
case SNIOC_SETFULLSCALE:
|
||||
ret = priv->ops->setfullscale(priv, (uint32_t)arg);
|
||||
sninfo("full-scale range: %08x ret: %d\n", (uint32_t)arg, ret);
|
||||
sninfo("full-scale range: %08" PRId32 " ret: %d\n",
|
||||
(uint32_t)arg, ret);
|
||||
break;
|
||||
|
||||
/* Unrecognized commands */
|
||||
|
|
@ -1550,5 +1552,4 @@ int lsm9ds1mag_register(FAR const char *devpath,
|
|||
return lsm9ds1_register(devpath, i2c, addr, &g_lsm9ds1mag_ops,
|
||||
LSM9DS1_OUT_X_L_M);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_I2C && CONFIG_SENSORS_LSM9DS1 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue