mirror of
https://github.com/apache/nuttx.git
synced 2026-10-17 11:08:57 +00:00
drivers/sensors/xen1210.c: Fix syslog formats
This commit is contained in:
parent
52d539d201
commit
aa294546f4
1 changed files with 4 additions and 3 deletions
|
|
@ -44,6 +44,7 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
|
@ -180,9 +181,9 @@ static ssize_t xen1210_read(FAR struct file *filep, FAR char *buffer,
|
|||
return ret;
|
||||
}
|
||||
|
||||
sninfo("X = 0x%06X\n", priv->sample.data_x);
|
||||
sninfo("Y = 0x%06X\n", priv->sample.data_y);
|
||||
sninfo("Z = 0x%06X\n", priv->sample.data_z);
|
||||
sninfo("X = 0x%06" PRIX32 "\n", priv->sample.data_x);
|
||||
sninfo("Y = 0x%06" PRIX32 "\n", priv->sample.data_y);
|
||||
sninfo("Z = 0x%06" PRIX32 "\n", priv->sample.data_z);
|
||||
|
||||
/* Return read sample */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue