[U-Boot] [RESEND PATCH v3] Add assert() for debug assertions

Wolfgang Denk wd at denx.de
Sun Oct 23 19:13:28 CEST 2011


Dear Mike Frysinger,

In message <CAJaTeTq_=k+1KwM3SZCoJ-zdm0_KRh9r5arp8Bbej+OJJ7BYag at mail.gmail.com> you wrote:
>
> > __assert_fail() only ever gets used (and thus needs to be compiled in)
> > if DEBUG is defined, right? =A0SO why cannot you wrap the code in a
> > "#ifdef DEBUG" ?
> 
> people often enable DEBUG on a per file basis.  so if i'm debugging
> drivers/spi/bfin_spi.c, i put "#define DEBUG" at the top of it.

Right you are. I missed that.

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
Landing: a controlled mid-air collision with a planet.


More information about the U-Boot mailing list