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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Sep 24 19:48:10 2013 +0200

copperplate/traceobj: Dump marks directly

We are about to panic, so do not push the trace mark dump into the
rt-printf buffer, rather print it directly to the terminal.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 lib/copperplate/traceobj.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/copperplate/traceobj.c b/lib/copperplate/traceobj.c
index 4646c52..7504a54 100644
--- a/lib/copperplate/traceobj.c
+++ b/lib/copperplate/traceobj.c
@@ -132,10 +132,10 @@ static void dump_marks(struct traceobj *trobj) /* lock 
held */
        int mark;
 
        for (mark = 0; mark < trobj->cur_mark; mark++)
-               __RT(fprintf(stderr, "[%d] at %s:%d\n",
-                            trobj->marks[mark].mark,
-                            trobj->marks[mark].file,
-                            trobj->marks[mark].line));
+               fprintf(stderr, "[%d] at %s:%d\n",
+                       trobj->marks[mark].mark,
+                       trobj->marks[mark].file,
+                       trobj->marks[mark].line);
 
        fflush(stderr);
 }


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

Reply via email to