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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep 23 12:06:19 2014 +0200

demo/alchemy/latency: fix path to RTDM-based test device

---

 demo/alchemy/latency.c |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/demo/alchemy/latency.c b/demo/alchemy/latency.c
index a8af526..70c717e 100644
--- a/demo/alchemy/latency.c
+++ b/demo/alchemy/latency.c
@@ -683,12 +683,7 @@ int main(int argc, char *const *argv)
        mlockall(MCL_CURRENT | MCL_FUTURE);
 
        if (test_mode != USER_TASK) {
-               char devname[RTDM_MAX_DEVNAME_LEN];
-
-               snprintf(devname, RTDM_MAX_DEVNAME_LEN, "rttest-timerbench%d",
-                        benchdev_no);
-               benchdev = rt_dev_open(devname, O_RDWR);
-
+               benchdev = open("/dev/rtdm/timerbench", O_RDWR);
                if (benchdev < 0) {
                        fprintf(stderr,
                                "latency: failed to open benchmark device, code 
%d\n"


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

Reply via email to