[PATCH] Write event stream in file

Ravindra Kumar Meena rmeena840 at gmail.com
Fri Jun 21 11:20:07 UTC 2019


Hi,

I was able to store the event stream in file. I have sent the patch for the
same. It has only one warning that I have to discuss with you.

../misc/record/record-main.c:172:14: warning: ‘ns’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
   ctf_item.ns=ns;
              ^
../misc/record/record-main.c:147:12: note: ‘ns’ was declared here
   uint32_t ns;

The ns value is uninitialized because it is not able to receive the value
from if block. Should I make
    uint32_t seconds;
    uint32_t nanoseconds;

above the block?

Thanks


-- 
*Ravindra Kumar Meena*,
B. Tech. Computer Science and Engineering,
Indian Institute of Technology (Indian School of Mines)
<https://www.iitism.ac.in/>, Dhanbad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190621/7c56195e/attachment-0002.html>


More information about the devel mailing list