[U-Boot] [PATCH] drivers/rtc/ds1337.c: fix GCC 4.6 build warnings

Marek Vasut marek.vasut at gmail.com
Sun Oct 30 21:12:23 CET 2011


> Dear Marek Vasut,
> 
> In message <201110300039.59309.marek.vasut at gmail.com> you wrote:
> > > -#undef DEBUG_RTC
> > > -
> > > -#ifdef DEBUG_RTC
> > > -#define DEBUGR(fmt,args...) printf(fmt ,##args)
> > > -#else
> > > -#define DEBUGR(fmt,args...)
> > > -#endif
> > > -/*--------------------------------------------------------------------
> > > -*/ -
> > 
> > This undermines the ability of fine-grained debuging output, right? Now
> > you can only debug whole uboot or nothing ... correct me if I'm wrong
> > please.
> 
> The normal way to enable debugging on file scope is to compile only
> the respective files with DEBUG defined.
> 
> 
> Best regards,
> 
> Wolfgang Denk

Roger that !!


More information about the U-Boot mailing list