#2763 assigned defect

Incorrect exit if condition for capture_flags_global in cpukit/libmisc/capture/capture.c

Reported by: Vivek Kukreja Owned by: Needs Funding
Priority: normal Milestone: Indefinite
Component: unspecified Version: 5
Severity: normal Keywords: capture.c
Cc: Blocked By:


In capture engine, capture_flags_global is set to RTEMS_CAPTURE_ON when 'cenable' command is run, but the 'ctrace' command exits incorrectly due to the following if condition:
if ( (capture_flags_global & RTEMS_CAPTURE_ON) != 0 )

This should be replaced by:
if ( (capture_flags_global & RTEMS_CAPTURE_ON) == 0 )

Change History (1)

comment:1 Changed on Feb 15, 2017 at 2:20:42 PM by Sebastian Huber

Milestone: 4.12Indefinite
Owner: set to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.