This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Printing debugging messages...
- To: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- Subject: Re: [ECOS] Printing debugging messages...
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Wed, 11 Jul 2001 22:25:49 +0100
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <Pine.SOL.4.20.0107111126240.2922-100000@washoe.ics.uci.edu>
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/