From owner-p4-projects@FreeBSD.ORG Thu Feb 2 21:29:14 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BAFC616A424; Thu, 2 Feb 2006 21:29:13 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D7A016A420 for ; Thu, 2 Feb 2006 21:29:13 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49BB843D49 for ; Thu, 2 Feb 2006 21:29:13 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k12LTDJj022881 for ; Thu, 2 Feb 2006 21:29:13 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k12LTCRY022876 for perforce@freebsd.org; Thu, 2 Feb 2006 21:29:12 GMT (envelope-from alc@freebsd.org) Date: Thu, 2 Feb 2006 21:29:12 GMT Message-Id: <200602022129.k12LTCRY022876@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 90936 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 21:29:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=90936 Change 90936 by alc@alc_home on 2006/02/02 21:29:10 Create the sysctl debug.promotion for controlling the printing of diagnostic messages. Affected files ... .. //depot/projects/superpages/src/sys/amd64/amd64/pmap.c#8 edit Differences ... ==== //depot/projects/superpages/src/sys/amd64/amd64/pmap.c#8 (text+ko) ==== @@ -145,7 +145,10 @@ #include #endif -#define DPRINTF(x) do { if (0) printf x; } while (0) +static int debug_promotion; +SYSCTL_INT(_debug, OID_AUTO, promotion, CTLFLAG_RW, &debug_promotion, 0, ""); + +#define DPRINTF(x) do { if (debug_promotion) printf x; } while (0) #ifndef PMAP_SHPGPERPROC #define PMAP_SHPGPERPROC 200