From: "Jan Beulich" Subject: dprintk() and gdprintk() to be compiled out when NDEBUG Date: Wed, 11 Feb 2015 07:50:36 +0000 Message-ID: <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.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YLS4F-0004mx-3h for xen-devel@lists.xenproject.org; Wed, 11 Feb 2015 07:50:39 +0000 Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org 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. 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, but I'd like to ask others to also keep an eye on that aspect. Jan