From: Wolfgang Denk Date: Wed, 09 Jul 2008 23:55:59 +0200 Subject: [U-Boot-Users] [PATCH] [resubmit] Fix printf errors. In-Reply-To: Your message of "Mon, 07 Jul 2008 06:41:14 PDT." <200807071341.m67DfEUP022439@pogo.cesa.opbu.xerox.com> Message-ID: <20080709215559.2C28B24304@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 <200807071341.m67DfEUP022439@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 begins to correct the resulting > compiler warnings. Some of these were bugs, e.g., "$d" instead of > "%d" and incorrect arguments. 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. > > Signed-off-by: Andrew Klossner > --- > common/cmd_fdt.c | 8 ++++---- > common/main.c | 2 +- > cpu/mpc85xx/traps.c | 8 ++++---- > include/common.h | 15 ++++++++++----- > lib_ppc/bootm.c | 8 ++++---- > net/tftp.c | 2 +- > 6 files changed, 24 insertions(+), 19 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 The only way you could make a happy marriage is by cuttin' their heads off as soon as they say `I do', yes? You can't make happi- ness... - Terry Pratchett, _Witches Abroad_