On Wed, Jun 22, 2011 at 3:08 PM, Mike Frysinger <vap...@gentoo.org> wrote: > On Wednesday, June 22, 2011 17:56:49 Wolfgang Denk wrote: >> Mike Frysinger wrote: >> > the trouble with ifdef magic like this is that errors/warnings can be=20 >> > introduced when DEBUG isnt defined, and then only noticed when DEBUG >> > is=20 defined. so how about: >> > >> > #ifdef DEBUG >> > # define _DEBUG 1 >> > #else >> > # define _DEBUG 2 >> >> 1 and 2? You don't happen to mean 1 and 0 ? > > err, of course. i had something semi-related on my mind as i banged that out.
Hi Mike & Wolfgang, That sounds better thanks, I will send a new patch. It would be good to have it compile the same code in and out of DEBUG mode. Regards, Simon > -mike > > _______________________________________________ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot > > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot