From: Wolfgang Denk Date: Mon, 09 Aug 2010 00:26:16 +0200 Subject: [U-Boot] [PATCH] cmd editing: optimize/shrink output blanking In-Reply-To: <1279877295-4823-1-git-send-email-vapier@gentoo.org> References: <1279877295-4823-1-git-send-email-vapier@gentoo.org> Message-ID: <20100808222616.E9E9B1536EF@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 Mike Frysinger, In message <1279877295-4823-1-git-send-email-vapier@gentoo.org> you wrote: > No need to output spaces 1 char at a time in a loop when the printf code > can do the same thing with the right format string. This shrinks things > and gives a nice speed up when killing off lines more than a byte or two > as printf will send out the buffer in one big chunk. > > Signed-off-by: Mike Frysinger > --- > common/main.c | 8 +++----- > 1 files changed, 3 insertions(+), 5 deletions(-) Applied, thanks. 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 Build a system that even a fool can use and only a fool will want to use it.