From: Wolfgang Denk Date: Wed, 28 Jan 2009 12:31:08 +0100 Subject: [U-Boot] [PATCH 02/31] environment, netconsole: reducing packages when printing environment variables In-Reply-To: <49803324.3000709@denx.de> References: <4980279F.2020302@denx.de> <200901281105.04621.sr@denx.de> <49803324.3000709@denx.de> Message-ID: <20090128113108.79AF9832E416@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko Schocher, In message <49803324.3000709@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.