[rtems commit] capture: Use proper accessor functions

Sebastian Huber sebh at rtems.org
Tue Sep 6 09:16:33 UTC 2016


Module:    rtems
Branch:    master
Commit:    1dd8ffff9fd9937cd97d477eb5c73f7430377b72
Changeset: http://git.rtems.org/rtems/commit/?id=1dd8ffff9fd9937cd97d477eb5c73f7430377b72

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Sep  6 10:50:50 2016 +0200

capture: Use proper accessor functions

---

 cpukit/libmisc/capture/capture.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 6fc2f09..69015c8 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -397,8 +397,8 @@ rtems_capture_record_open (rtems_tcb*                         tcb,
     in.size    = size;
     in.task_id = tcb->Object.id;
     in.events  = (events |
-                  (tcb->real_priority) |
-                  (tcb->current_priority << 8));
+                  rtems_capture_task_real_priority (tcb) |
+                  (rtems_capture_task_curr_priority (tcb) << 8));
 
     rtems_capture_get_time (&in.time);
 
@@ -496,8 +496,8 @@ bool rtems_capture_filter (rtems_tcb*  tcb, uint32_t events)
      * watch ceiling, and the global watch or task watch is enabled.
      */
     if ((events & RTEMS_CAPTURE_RECORD_EVENTS) ||
-        ((tcb->real_priority >= capture_ceiling) &&
-         (tcb->real_priority <= capture_floor) &&
+        ((rtems_capture_task_real_priority (tcb) >= capture_ceiling) &&
+         (rtems_capture_task_real_priority (tcb) <= capture_floor) &&
          ((capture_flags_global & RTEMS_CAPTURE_GLOBAL_WATCH) ||
           (control && (control->flags & RTEMS_CAPTURE_WATCH)))))
     {



More information about the vc mailing list