From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sun, 30 Oct 2011 21:12:23 +0100 Subject: [U-Boot] [PATCH] drivers/rtc/ds1337.c: fix GCC 4.6 build warnings In-Reply-To: <20111030131120.5BDA611F9E5D@gemini.denx.de> References: <1319917151-14369-1-git-send-email-wd@denx.de> <201110300039.59309.marek.vasut@gmail.com> <20111030131120.5BDA611F9E5D@gemini.denx.de> Message-ID: <201110302112.23209.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Dear Marek Vasut, > > In message <201110300039.59309.marek.vasut@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 !!