All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Powerpc MPC8641D enable debug hush.c
Date: Mon, 25 Jun 2012 23:37:46 +0200	[thread overview]
Message-ID: <20120625213746.97C95200358@gemini.denx.de> (raw)
In-Reply-To: <20120625161735.141630@gmx.net>

Dear "Thies Peter Thiesen",

In message <20120625161735.141630@gmx.net> you wrote:
> 
> I need a little help:

Please learn to use tools.  For example, "grep" is your friend.

> I want to turn on the debug in file hush.c
> I see in source code ?hush.c?, as example:
> 
> debug_printf("parse_stream: ch=%c (%d) m=%d quote=%d - %c\n",
> 		ch >= ' ' ? ch : '.', ch, m,
> 		dest->quote, ctx->stack == NULL ? '*' : '.');
> 
> What I must do to enable the printing?

Change this "#if 0" into "#if 1" in "common/hush.c":
...
 361 /* define DEBUG_SHELL for debugging output (obviously ;-)) */
 362 #if 0
 363 #define DEBUG_SHELL
 364 #endif

> Were does the printing appear?

On the serial console port.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
This cultural mystique surrounding the  biological  function  --  you
realize humans are overly preoccupied with the subject.
	-- Kelinda the Kelvan, "By Any Other Name", stardate 4658.9

      reply	other threads:[~2012-06-25 21:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 16:17 [U-Boot] Powerpc MPC8641D enable debug hush.c Thies Peter Thiesen
2012-06-25 21:37 ` Wolfgang Denk [this message]

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=20120625213746.97C95200358@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.