public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Yong Chen Tan <oricon776@hotmail.com>
To: "ecos-discuss@ecos.sourceware.org" <ecos-discuss@ecos.sourceware.org>
Subject: RE: [ECOS]  Re: init_all_network_interfaces() problem?
Date: Wed, 02 Jul 2008 06:04:00 -0000	[thread overview]
Message-ID: <BAY112-W46E7E0413375860F3191E7EF990@phx.gbl> (raw)




> To: ecos-discuss@sources.redhat.com
> From: grante@visi.com
> Date: Tue, 1 Jul 2008 15:36:08 +0000
> Subject: [ECOS] Re: init_all_network_interfaces() problem?
>
> On 2008-07-01, Yong Chen Tan  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.
>
Hi there, my defaultTraceHandler() is also the same as yours.. Sorry to trouble you again but I have never done this type of debugging before. Is it possible to show some sample codes on how the debugging is done? Like where should I put this method for debugging and what does you mean by adding diag_printf()? Im really quite loss at the moment. Hope you can help
_________________________________________________________________
Manage multiple email accounts with Windows Live Mail effortlessly.
http://www.get.live.com/wl/all

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

             reply	other threads:[~2008-07-02  6:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02  6:04 Yong Chen Tan [this message]
2008-07-02 13:39 ` Grant Edwards
  -- strict thread matches above, loose matches on Subject: below --
2008-07-01 14:20 Yong Chen Tan
2008-07-01 15:37 ` Grant Edwards
2008-07-01  3:08 [ECOS] " Yong Chen Tan
2008-07-01 14:14 ` [ECOS] " Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY112-W46E7E0413375860F3191E7EF990@phx.gbl \
    --to=oricon776@hotmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).