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-apps.git

commit 667d03f1841e95d9bc647f1c1b93611964532aef
Author: yangguangcai <[email protected]>
AuthorDate: Thu Jun 1 20:31:25 2023 +0800

    test/oneshot:fix compile warning.
    
    Signed-off-by: yangguangcai <[email protected]>
---
 testing/drivertest/drivertest_oneshot.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testing/drivertest/drivertest_oneshot.c 
b/testing/drivertest/drivertest_oneshot.c
index 85af74ec2..329d0477d 100644
--- a/testing/drivertest/drivertest_oneshot.c
+++ b/testing/drivertest/drivertest_oneshot.c
@@ -108,7 +108,7 @@ static void parse_commandline(FAR struct oneshot_state_s 
*oneshot_state,
             OPTARG_TO_VALUE(converted, time_t, 10);
             if (converted < 1 || converted > INT_MAX)
               {
-                printf("signal out of range: %ld\n", converted);
+                printf("signal out of range:%lld\n", (long long)converted);
                 show_usage(argv[0], EXIT_FAILURE);
               }
 
@@ -161,7 +161,7 @@ static void test_case_oneshot(FAR void **state)
   ret = ioctl(fd, OSIOC_MAXDELAY, &ts);
   assert_return_code(ret, OK);
 
-  syslog(LOG_DEBUG, "maxdelay sec:%ld\n", ts.tv_sec);
+  syslog(LOG_DEBUG, "maxdelay sec:%lld\n", (long long)ts.tv_sec);
   syslog(LOG_DEBUG, "maxdelay nsec:%ld\n", ts.tv_nsec);
 
   for (i = 0; i < ONESHOT_DEFAULT_NSAMPLES; i++)

Reply via email to