This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A safe way to print debug output in DSRs ?


Hi,

I'm looking for a safeway to print debug ouput while in a DSR.

Printf is not safe for it locks a mutex.

The weird thing is that AFAICS it uses this mutex only when using the
thread-safe printf option. Could this mean that the not thread safe printf
call is more safe for DSRs? 
Or is there another call that is safe? What about diag_printf?

Thanks

-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]