From: Wolfgang Denk Date: Sun, 23 Oct 2011 19:13:28 +0200 Subject: [U-Boot] [RESEND PATCH v3] Add assert() for debug assertions In-Reply-To: References: <1315434680-21641-1-git-send-email-sjg@chromium.org> <20111021222026.4F3FA18AE81D@gemini.denx.de> <20111023083537.2DD1A18AE823@gemini.denx.de> Message-ID: <20111023171328.D0C81137213A@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 Mike Frysinger, In message 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.