patch submit: Use "flprintf()" on every printout on stderr
Hello, While using udpcast, I found out that it may be very verbose on stderr, even if a logfile is specified. This turns out to be a problem for our embedded application where the stderr is a (slow) serial port. So here is a patch which replace every occurrence of fprint(sdterr,...) by the flprintf() function defined in log.c. I thought it might be of some use for people. (This patch also happen to cleanup the blank spaces at end of lines) Julien -- People in the embedded space don't do prototypes. They hack something until it works, then it's done. --- Always code as if the person who will maintain your code is a maniac serial killer that knows where you live
Hello Julien On 2010-09-13 11:50, Julien Aube wrote:
Hello,
While using udpcast, I found out that it may be very verbose on stderr, even if a logfile is specified.
This turns out to be a problem for our embedded application where the stderr is a (slow) serial port.
So here is a patch which replace every occurrence of fprint(sdterr,...) by the flprintf() function defined in log.c.
I thought it might be of some use for people.
(This patch also happen to cleanup the blank spaces at end of lines)
Julien
In version 20110710, most messages now go to the log, if one is specified, with 2 notable exception: - prompts for an action ("Press any key to start sending data.") - progress info. However, progress info can now be suppressed entirely using the new --no-progress flag Regards, Alain
participants (2)
-
Alain Knaff -
Julien Aube