From: Wolfgang Denk Date: Sun, 25 Nov 2012 20:56:34 +0100 Subject: [U-Boot] [PATCH 02/22] ARM: sunxi: MMC driver In-Reply-To: <20121125143332-9180@mutt-kz> References: <1353843479.17518.14.camel@home.hno.se> <20121125143332-9180@mutt-kz> Message-ID: <20121125195634.2A45D20105B@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 Luka Perkov, In message <20121125143332-9180@mutt-kz> you wrote: > ... > Why not reuse something from existing uboot code ? (exaple from api/api.c): > > 36 #define DEBUG > 37 #undef DEBUG NAK. Please never ever do that. > 53 #ifdef DEBUG > 54 #define debugf(fmt, args...) do { printf("%s(): ", __func__); printf(fm= > t, ##args); } while (0) > 55 #else > 56 #define debugf(fmt, args...) > 57 #endif More NAK!!! We have standard debug utilities, and do not need to reinvent the wheel every time we come around. 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 Looks clean and obviously correct to me, but then _everything_ I write always looks obviously correct to me. - Linus Torvalds in