From: Wolfgang Denk Date: Mon, 25 Apr 2011 00:14:58 +0200 Subject: [U-Boot] [PATCH 2/3] Fix a few gcc warnings. In-Reply-To: <1303633774-22961-3-git-send-email-Joakim.Tjernlund@transmode.se> References: <20110420201335.BC035152160@gemini.denx.de> <1303633774-22961-3-git-send-email-Joakim.Tjernlund@transmode.se> Message-ID: <20110424221458.90B6CD5269F@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 Joakim Tjernlund, In message <1303633774-22961-3-git-send-email-Joakim.Tjernlund@transmode.se> you wrote: > Noticed while building all of mpc8xx Please include in the commit message what the compiler warnings were, and which compiler version was used to produce these warnings. > diff --git a/examples/standalone/timer.c b/examples/standalone/timer.c > index 834cc9a..a4d4581 100644 > --- a/examples/standalone/timer.c > +++ b/examples/standalone/timer.c > @@ -186,7 +186,7 @@ int timer (int argc, char * const argv[]) > /* clear all events */ > *hwp->terp = (CPMT_EVENT_CAP | CPMT_EVENT_REF); > > - printf (usage); > + printf("%s", usage); I dislike this change. Which warning does the old code produce for you? 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 Children begin by loving their parents. After a time they judge them. Rarely, if ever, do they forgive them. - Oscar Wilde