HI,

Jakub wrote:
> Not
> sure if log_msg() is suitable for logging from the async framework.
> Perhaps klog_printf() could do.
Several points here:
 - log_msg() called from async framework introduces a dangerous 
layer-reversal - lower layer - async - calls to higher level - log_msg() (which 
depends on VFS), leading to the possibility of deadlocks
 - I don't think libraries should log anything to system logs, in general, 
unless the logging is explicitly enabled for debugging purposes - I have this 
from hands-on experience in Solaris
 - in case of libraries errors should be propagated to the caller, not 
logged out of band and out of control of the caller
 - log_msg cannot be currently used in libraries because it does not 
support contexts yet. It would clash with application using the same facility

Cheers
Jiri

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to