From: Tom Rini Date: Fri, 14 Sep 2012 11:47:08 -0700 Subject: [U-Boot] [PATCH v2 09/11] S3C24XX: Add NAND Flash driver In-Reply-To: <1347643742-19966-10-git-send-email-jose.goncalves@inov.pt> References: <1347643742-19966-1-git-send-email-jose.goncalves@inov.pt> <1347643742-19966-10-git-send-email-jose.goncalves@inov.pt> Message-ID: <20120914184708.GJ22028@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Sep 14, 2012 at 06:29:00PM +0100, Jos?? Miguel Gon??alves wrote: > NAND Flash driver with HW ECC for the S3C24XX SoCs. > Currently it only supports SLC NAND chips. > > Signed-off-by: Jos?? Miguel Gon??alves [snip] > +#ifdef CONFIG_SPL_BUILD > +#define printf(arg...) do {} while (0) > +#endif As Marek pointed out, this isn't the right way to do this. [snip] > + case 2: /* Multiple error */ > + case 3: /* ECC area error */ > + printf("S3C24XX NAND: ECC uncorrectable error detected.\n"); Use puts() here. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: