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

Wolfgang Denk wd at denx.de
Sun Oct 30 14:11:20 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

-- 
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
Hokey religions and ancient weapons are  no  substitute  for  a  good
blaster at your side.                                      - Han Solo


More information about the U-Boot mailing list