[RTEMS Project] #2763: Incorrect exit if condition for capture_flags_global in cpukit/libmisc/capture/capture.c

RTEMS trac trac at rtems.org
Wed Jul 20 12:08:06 UTC 2016


#2763: Incorrect exit if condition for capture_flags_global in
cpukit/libmisc/capture/capture.c
--------------------------+-----------------------
 Reporter:  vivekkukreja  |      Owner:
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:  4.12
Component:  General       |    Version:  4.12
 Severity:  normal        |   Keywords:  capture.c
--------------------------+-----------------------
 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 )

--
Ticket URL: <http://devel.rtems.org/ticket/2763>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list