This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: init_all_network_interfaces() problem?
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 1 Jul 2008 15:36:08 +0000 (UTC)
- Subject: [ECOS] Re: init_all_network_interfaces() problem?
- References: <BAY112-W75BAB1C835280B5E1CE08EF9E0@phx.gbl>
On 2008-07-01, Yong Chen Tan <oricon776@hotmail.com> wrote:
> Sorry my knowledge on this area is very limited... By the way,
> I really managed to run the webserver using Redboot.
You may have used RedBoot to start an eCos application that was
running the web server.
> I did create and start the thread running the web server as it
> was my only thread in the program. Btw how can I enable the
> debug/trace output?
Look at the source for defaultTraceHandler(). I don't know
what yours looks like, but mine looks like this:
void defaultTraceHandler(int level, char_t * buf)
{
if (buf && level <= GOAHEAD_TRACE_LEVEL)
diag_printf("%s", buf);
}
In my code, the setting of GOAHEAD_TRACE_LEVEL determines the
amount of debug output.
If turning up the trace level, doesn't show you the problem,
then adding a few diag_printf() calls can tell you a lot.
You have debugged C programs before, haven't you?
> Is there any documentations on these?
Dunno. There's source code.
--
Grant Edwards grante Yow! I'm receiving a coded
at message from EUBIE BLAKE!!
visi.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss