[haiku-development] Re: RTL8101/8102 FreeBSD Driver

Hi Adrian

> As for dprintf: while debuggingsome other network driver I found out 
> that
> not all messages get written to /var/log/syslog after being emitted 
> with
> dprintf; I know that they're emitted because replacing the dprintf s 
> with a
> null pointer dereference makes the kernel panic.

If this is the case and you have a reproducable test case, please open 
a bug report about it. It is true that the syslog has some limits, that 
is it has a buffer that can run full if the syslog content cannot be 
sent to the syslog_daemon or written back to disk quickly enough. In 
practice you should hit that case rarely though unless you generate 
output at a very high frequency. Also if this happens, you should at 
least see a "<trunc>", "<drop>" or similar that indicates the ouptut 
truncation. Note that duplicate messages will be cumulated into "Last 
line repeated x times" messages, but these are flushed as soon as a 
different line comes in or at least once every 1-3 seconds. Also make 
sure that you terminate your print statements using newlines ("\n"), as 
otherwise they might be buffered and not written back right away (not 
sure if this really applies for syslog though).

Regards
Michael

Other related posts: