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]

Re: Printing debugging messages...


Cristiano Ligieri Pereira wrote:
> 
> I'm making some modifications in the kernel and hence I need to print lots
> of messages in order to debug them. What's the safest and fastest way to
> print such message?
> 
> Sometimes my application crashes and I guess its due to the printf's I've
> been using so far.

You could use buffered tracing instead which will at least only do the
prints in one batch, or on demand. See <cyg/infra/cyg_trac.h>

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/


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