All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Powerpc MPC8641D enable debug hush.c
@ 2012-06-25 16:17 Thies Peter Thiesen
  2012-06-25 21:37 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Thies Peter Thiesen @ 2012-06-25 16:17 UTC (permalink / raw)
  To: u-boot

Hi at All,

I need a little help:
My Hardware:
Power PC MPC8641D
Board freescale MPC8641hpcn

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?
   (Options,and so on?Tutorial?. )
Were does the printing appear?


Best Regards,
         Thiesen


-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Powerpc MPC8641D enable debug hush.c
  2012-06-25 16:17 [U-Boot] Powerpc MPC8641D enable debug hush.c Thies Peter Thiesen
@ 2012-06-25 21:37 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2012-06-25 21:37 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-25 21:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-25 16:17 [U-Boot] Powerpc MPC8641D enable debug hush.c Thies Peter Thiesen
2012-06-25 21:37 ` Wolfgang Denk

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.