From: Wolfgang Denk Date: Mon, 07 Jul 2008 00:29:07 +0200 Subject: [U-Boot-Users] [PATCH] Fix printf errors. In-Reply-To: Your message of "Wed, 02 Jul 2008 07:17:40 PDT." <200807021417.m62EHeff016508@pogo.cesa.opbu.xerox.com> Message-ID: <20080706222907.4F8DA24681@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 In message <200807021417.m62EHeff016508@pogo.cesa.opbu.xerox.com> you wrote: > The compiler will help find mismatches between printf formats and > arguments if you let it. This patch adds the necessary attributes to > declarations in include/common.h, then corrects the resulting compiler > warnings in several files. Some of these were bugs, e.g., "$d" > instead of "%d" and incorrect arguments in common/cmd_fdt.c. Others > were just annoying, like int-long mismatches on a system where both > are 32 bits. It's worth fixing the annoying errors to catch the real > ones. > > I can only compile for ppc architecture so have not tested much of the > source code for further warnings. Very good. Thanks a lot - but could you please add your signed-off-by line, and clean up the commit message (move commnets for the posting that are not intended for the commit message _below_ the "---" line). 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 Der Irrtum wiederholt sich immerfort in der Tat. Deshalb mu? man das Wahre unerm?dlich in Worten wiederholen. - Goethe