From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: dprintk() and gdprintk() to be compiled out when NDEBUG Date: Wed, 18 Feb 2015 10:58:20 +0000 Message-ID: <1424257100.27775.3.camel@citrix.com> References: <54DB17DC020000780005ED86@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YO2Kp-0001lM-2W for xen-devel@lists.xenproject.org; Wed, 18 Feb 2015 10:58:27 +0000 In-Reply-To: <54DB17DC020000780005ED86@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On Wed, 2015-02-11 at 07:50 +0000, Jan Beulich wrote: > All, > > I'd like to propose to honor the 'd' in these functions' names (which > I understand to mean "debug") in that such functions should be > no-ops in non-debug builds. I'd then be inclined to introduce a > gprintk() automatically adding XENLOG_GUEST and the printing of > current using the %pv format. Sounds fine to me. > Quite likely the (mis-)use of these > two functions may then temporarily result in messages not meant > to be debugging ones to become hidden in non-debug builds. If > others agree, I'd try to make one pass through the tree to try to > identify such, Thanks, that would be useful I think. Will you cover arch/arm too? > but I'd like to ask others to also keep an eye on that aspect. I'll certainly try. Ian.