From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 17 Aug 2012 19:41:15 -0400 Subject: [U-Boot] [PATCH] Change dead code in "test" cmd to debug output In-Reply-To: <1345236972-20010-1-git-send-email-joe.hershberger@ni.com> References: <1345236972-20010-1-git-send-email-joe.hershberger@ni.com> Message-ID: <201208171941.16773.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 17 August 2012 16:56:12 Joe Hershberger wrote: > --- a/common/cmd_test.c > +++ b/common/cmd_test.c > > -#if 0 > +#ifdef DEBUG > { > - printf("test:"); > + debug("test(%d):", argc); > left = 1; > while (argv[left]) > - printf(" %s", argv[left++]); > + debug(" '%s'", argv[left++]); > } > #endif i think you can even remove the #ifdef DEBUG here since debug() will expand to nothing, and gcc should do DCE on the whole block -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: