Module: xenomai-3
Branch: next
Commit: ec60521246bd4f388e96ea1cb12d3b87459c5a9c
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=ec60521246bd4f388e96ea1cb12d3b87459c5a9c

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Oct 31 11:14:20 2014 +0100

testsuite: fix u64 args to format strings

---

 testsuite/clocktest/clocktest.c            |    6 +++---
 testsuite/smokey/vdso-access/vdso-access.c |    3 ++-
 testsuite/xeno-test/xeno-test-run.c        |    7 +++++--
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/testsuite/clocktest/clocktest.c b/testsuite/clocktest/clocktest.c
index ae73ec0..6ba8972 100644
--- a/testsuite/clocktest/clocktest.c
+++ b/testsuite/clocktest/clocktest.c
@@ -102,8 +102,8 @@ static void show_hostrt_diagnostics(void)
        printf("wall_to_monotonic_sec    : %lld\n",
               (unsigned long long)cobalt_vdso->hostrt_data.wtom_sec);
        printf("wall_to_monotonic_nsec   : %u\n", 
cobalt_vdso->hostrt_data.wtom_nsec);
-       printf("cycle_last       : %Lu\n", cobalt_vdso->hostrt_data.cycle_last);
-       printf("mask             : 0x%Lx\n", cobalt_vdso->hostrt_data.mask);
+       printf("cycle_last       : %Lu\n", (long 
long)cobalt_vdso->hostrt_data.cycle_last);
+       printf("mask             : 0x%Lx\n", (long 
long)cobalt_vdso->hostrt_data.mask);
        printf("mult             : %u\n", cobalt_vdso->hostrt_data.mult);
        printf("shift            : %u\n\n", cobalt_vdso->hostrt_data.shift);
 }
@@ -115,7 +115,7 @@ static void show_realtime_offset(void)
                return;
        }
 
-       printf("Wallclock offset : %llu\n", cobalt_vdso->wallclock_offset);
+       printf("Wallclock offset : %llu\n", (long 
long)cobalt_vdso->wallclock_offset);
 }
 
 static inline uint64_t read_clock(clockid_t clock_id)
diff --git a/testsuite/smokey/vdso-access/vdso-access.c 
b/testsuite/smokey/vdso-access/vdso-access.c
index 04f4f45..fbd0800 100644
--- a/testsuite/smokey/vdso-access/vdso-access.c
+++ b/testsuite/smokey/vdso-access/vdso-access.c
@@ -24,7 +24,8 @@ int run_vdso_access(struct smokey_test *t, int argc, char 
*const argv[])
                return 1;
        }
 
-       printf("VDSO: features detected: %llx\n", cobalt_vdso->features);
+       printf("VDSO: features detected: %llx\n",
+              (long long)cobalt_vdso->features);
 
        return 0;
 }
diff --git a/testsuite/xeno-test/xeno-test-run.c 
b/testsuite/xeno-test/xeno-test-run.c
index 12d3df4..a60fe3b 100644
--- a/testsuite/xeno-test/xeno-test-run.c
+++ b/testsuite/xeno-test/xeno-test-run.c
@@ -470,6 +470,7 @@ void handle_script_child(struct child *child, fd_set *fds)
 void handle_load_child(struct child *child, fd_set *fds)
 {
        struct child *next;
+       int ret;
 
        if (FD_ISSET(child->out, fds))
                copy(child->out, STDOUT_FILENO);
@@ -512,8 +513,10 @@ void handle_load_child(struct child *child, fd_set *fds)
                                fprintf(stderr, "pipe_in: %s\n", pipe_in_name);
                                script.in = open(pipe_in_name, O_WRONLY);
                        }
-                       if (script.in != -1)
-                               write(script.in, "0\n", 2);
+                       if (script.in != -1) {
+                               ret = write(script.in, "0\n", 2);
+                               (void)ret;
+                       }
                        termload_start = 0;
                }
        }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to