[U-Boot] [PATCH 02/31] environment, netconsole: reducing packages when printing environment variables

Wolfgang Denk wd at denx.de
Wed Jan 28 12:31:08 CET 2009


Dear Heiko Schocher,

In message <49803324.3000709 at denx.de> you wrote:
> 
> > Why not fold this "putc()" into the puts() above (replace it with printf)?
> 
> I make it in a printf (Think there was no reason for not doing it so)

Check if printf() is not printing a series of single characters again!
Also, we tend to prefer using puts() / putc() over printf() because of
the huge performance overhead involved in printf() when only plain
constant strings need to be printed.

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
Sometimes a man will tell his bartender things he'll never tell his doctor.
	-- Dr. Phillip Boyce, "The Menagerie" ("The Cage"),
	   stardate unknown.


More information about the U-Boot mailing list