From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 24 Sep 2014 15:22:06 +0200 Subject: [U-Boot] [PATCH 27/51] fpga: altera: Clean up the printing and debug In-Reply-To: <5422BD19.2070504@monstr.eu> References: <1411304339-11348-1-git-send-email-marex@denx.de> <1411305113-11649-1-git-send-email-marex@denx.de> <5422BD19.2070504@monstr.eu> Message-ID: <201409241522.06946.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 On Wednesday, September 24, 2014 at 02:46:17 PM, Michal Simek wrote: > On 09/21/2014 03:11 PM, Marek Vasut wrote: > > Clean up the printf() statements and get rid of the PRINTF() > > macro by replacing it with debug_cond(). > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Albert Aribaud > > Cc: Tom Rini > > Cc: Wolfgang Denk > > Cc: Pavel Machek [...] > > WARNING: space prohibited between function name and open parenthesis '(' > #113: FILE: drivers/fpga/altera.c:29: > + if (!altera_validate (desc, (char *)__func__)) { > > WARNING: space prohibited between function name and open parenthesis '(' > #165: FILE: drivers/fpga/altera.c:72: > + if (!altera_validate (desc, (char *)__func__)) { > > WARNING: space prohibited between function name and open parenthesis '(' > #209: FILE: drivers/fpga/altera.c:109: > + if (altera_validate (desc, (char *)__func__)) { > > WARNING: line over 80 characters > #275: FILE: drivers/fpga/altera.c:160: > + printf("Device Function Table @ 0x%p\n", desc- >iface_fns); > > CHECK: Alignment should match open parenthesis > #290: FILE: drivers/fpga/altera.c:171: > + printf("%s: No support for ACEX1K devices.\n", > + __func__); > > WARNING: line over 80 characters > #330: FILE: drivers/fpga/altera.c:217: > + printf("%s: Invalid family type, %d\n", fn, desc- >family); The patch does not address this issue, this is addressed by one of the patches further down the pipe (but it is addressed). I tried to keep these patches somewhat separated to keep the changes reasonably contained, but the file was a mess. The best suggestion I can give you is to use checkpatch -f on the resulting altera.c file ; there are still a few warnings, but it's much better than it was. Best regards, Marek Vasut