From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 12 Apr 2013 19:27:09 +0200 Subject: [U-Boot] [PATCH v2 6/7] mtd: nand: add driver for diskonchip g4 nand flash In-Reply-To: <1365714007.3640.13@snotra> References: <1365641128-15812-1-git-send-email-mikedunn@newsguy.com> <1365641128-15812-7-git-send-email-mikedunn@newsguy.com> <1365714007.3640.13@snotra> Message-ID: <201304121927.09245.marex@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 Scott Wood, [...] > > [snip] > > > +#ifdef DEBUG_DOCG4 > > +#define dbg(format, arg...) printf("DEBUG: " format, ##arg) > > +#else > > +#define dbg(format, arg...) do {} while (0) > > +#endif There already is a debugging facility in include/common.h too. And it does the same thing too. MTDDEBUG might work as well. Best regards, Marek Vasut