From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.x86-64.org (s15943758.onlinehome-server.info [217.160.130.188]) by ozlabs.org (Postfix) with ESMTP id 69CF3B6FD4 for ; Sat, 28 Apr 2012 18:52:32 +1000 (EST) Date: Sat, 28 Apr 2012 10:52:23 +0200 From: Borislav Petkov To: Mauro Carvalho Chehab Subject: Re: [PATCH EDACv16 1/2] edac: Change internal representation to work with layers Message-ID: <20120428085223.GB26065@aftab.osrc.amd.com> References: <1335289087-11337-1-git-send-email-mchehab@redhat.com> <1335291342-14922-1-git-send-email-mchehab@redhat.com> <20120427133304.GE9626@aftab.osrc.amd.com> <1335535895.25521.7.camel@joe2Laptop> <4F9AC44A.5000509@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4F9AC44A.5000509@redhat.com> Cc: Shaohui Xie , Jason Uhlenkott , Aristeu Rozanski , Hitoshi Mitake , Mark Gross , Dmitry Eremin-Solenikov , Ranganathan Desikan , Borislav Petkov , Egor Martovetsky , Niklas =?iso-8859-1?Q?S=F6derlund?= , Tim Small , "Arvind R." , Chris Metcalf , Joe Perches , Doug Thompson , Linux Edac Mailing List , Michal Marek , Jiri Kosina , Linux Kernel Mailing List , Olof Johansson , Andrew Morton , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Apr 27, 2012 at 01:07:38PM -0300, Mauro Carvalho Chehab wrote: > Yes. This is a common issue at the EDAC core: on several places, it calls the > edac debug macros (DEBUGF0...DEBUGF4) passing a __func__ as an argument, while > the debug macros already handles that. I suspect that, in the past, the __func__ > were not at the macros, but some patch added it there, and forgot to fix the > occurrences of its call. The patch that added it is d357cbb445208 and you reviewed it. > This is something that needs to be reviewed at the entire EDAC core (and likely > at the drivers). Looks like a job for a newbie to get her/his feet wet with kernel work. > I opted to not touch on this at the existing debug logic, as I think that the > better is to address all those issues on one separate patch, after fixing the > EDAC core bugs. No, you simply need to remove the __func__ argument in your newly added debug call: debugf2("%s: %d: dimm%zd (%d:%d:%d): row %d, chan %d\n", __func__, i, (dimm - mci->dimms), pos[0], pos[1], pos[2], row, chn); And while you're at it, remove the rest of the __func__ arguments from your newly added debugfX calls. -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551