diff --git a/drivers/sensors/xen1210.c b/drivers/sensors/xen1210.c index e85db4ade9..e0076a665f 100644 --- a/drivers/sensors/xen1210.c +++ b/drivers/sensors/xen1210.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -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 */