This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
A safe way to print debug output in DSRs ?
- To: "Ecos-List (E-mail)" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] A safe way to print debug output in DSRs ?
- From: Fabrice Gautier <Fabrice_Gautier at sdesigns dot com>
- Date: Tue, 29 Aug 2000 11:41:44 -0700
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