You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/01/31 13:00:30 UTC

(nuttx) branch master updated: drivers/sensor: delete warning about argument type in bmi160

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new ea5210bd40 drivers/sensor: delete warning about argument type in bmi160
ea5210bd40 is described below

commit ea5210bd405bbe7e419afec57c61f520078bb308
Author: SPRESENSE <41...@users.noreply.github.com>
AuthorDate: Thu Jan 11 18:32:00 2024 +0900

    drivers/sensor: delete warning about argument type in bmi160
    
    Remove warning due to variable type difference in format.
---
 drivers/sensors/bmi160.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sensors/bmi160.c b/drivers/sensors/bmi160.c
index 8635f2f462..b50ba4537f 100644
--- a/drivers/sensors/bmi160.c
+++ b/drivers/sensors/bmi160.c
@@ -147,7 +147,7 @@ static ssize_t bmi160_read(FAR struct file *filep, FAR char *buffer,
 
   if (len < sizeof(struct accel_gyro_st_s))
     {
-      snerr("Expected buffer size is %lu\n", sizeof(struct accel_gyro_st_s));
+      snerr("Expected buffer size is %u\n", sizeof(struct accel_gyro_st_s));
       return 0;
     }