mscherer / the-bus-pirate

Automatically exported from code.google.com/p/the-bus-pirate
0 stars 0 forks source link

SPISniffer output is not flushed #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile SPISniffer (linux-version)
2. Run it and pipe output to file or use tee

What is the expected output? What do you see instead?
Output is not immediately piped into the file, instead it is buffered. It 
appears as though piping doesn't work at all (until presumably the buffer gets 
flushed).

What version of the product are you using? On what operating system?
Latest, Ubuntu.

Please provide any additional information below.

I added an fflush(stdout); after the startup (after "Press ESC to stop."), and 
after each line of output is printed.

Original issue reported on code.google.com by jul...@rhotechsolar.com on 13 Jan 2014 at 10:31