# HG changeset patch # User Edouard Tisserant # Date 1536612027 -7200 # Node ID c6e3c6d66af0c1441c94a05728d329266b6b9f25 # Parent a1bb4998a9530be301c930691314cda1b554cde5 migrate posix xenomai example to Xenomai3 diff -r a1bb4998a953 -r c6e3c6d66af0 examples/xenomai_posix/main.c --- a/examples/xenomai_posix/main.c Mon Jul 30 11:58:02 2018 +0200 +++ b/examples/xenomai_posix/main.c Mon Sep 10 22:40:27 2018 +0200 @@ -40,9 +40,6 @@ #include #include -#include -#include - #include "ecrt.h" #define NSEC_PER_SEC 1000000000 @@ -124,11 +121,11 @@ ecrt_domain_state(domain1, &ds); if (ds.working_counter != domain1_state.working_counter) { - rt_printf("Domain1: WC %u.\n", ds.working_counter); + printf("Domain1: WC %u.\n", ds.working_counter); } if (ds.wc_state != domain1_state.wc_state) { - rt_printf("Domain1: State %u.\n", ds.wc_state); + printf("Domain1: State %u.\n", ds.wc_state); } domain1_state = ds; @@ -143,15 +140,15 @@ ecrt_master_state(master, &ms); if (ms.slaves_responding != master_state.slaves_responding) { - rt_printf("%u slave(s).\n", ms.slaves_responding); + printf("%u slave(s).\n", ms.slaves_responding); } if (ms.al_states != master_state.al_states) { - rt_printf("AL states: 0x%02X.\n", ms.al_states); + printf("AL states: 0x%02X.\n", ms.al_states); } if (ms.link_up != master_state.link_up) { - rt_printf("Link is %s.\n", ms.link_up ? "up" : "down"); + printf("Link is %s.\n", ms.link_up ? "up" : "down"); } master_state = ms;