Module: xenomai-3
Branch: stable-3.0.x
Commit: bff9af2b2ddceb20fc5445483ef082906e01cc70
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=bff9af2b2ddceb20fc5445483ef082906e01cc70

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Jan 30 19:06:54 2016 +0100

cobalt/clock: display external clock id. in procfs

---

 kernel/cobalt/clock.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 783ac7d..a696f0e 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -24,6 +24,7 @@
 #include <cobalt/kernel/clock.h>
 #include <cobalt/kernel/arith.h>
 #include <cobalt/kernel/vdso.h>
+#include <cobalt/uapi/time.h>
 #include <asm/xenomai/calibration.h>
 #include <trace/events/cobalt-core.h>
 /**
@@ -509,7 +510,7 @@ static int clock_show(struct xnvfile_regular_iterator *it, 
void *data)
        struct xnclock *clock = xnvfile_priv(it->vfile);
 
        if (clock->id >= 0)     /* External clock, print id. */
-               xnvfile_printf(it, "%7s: %d\n", "id", clock->id);
+               xnvfile_printf(it, "%7s: %d\n", "id", 
__COBALT_CLOCK_EXT(clock->id));
                
        xnvfile_printf(it, "%7s: irq=%Ld kernel=%Ld user=%Ld\n", "gravity",
                       xnclock_ticks_to_ns(clock, xnclock_get_gravity(clock, 
irq)),


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

Reply via email to