From owner-p4-projects Mon May 6 15:52:39 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 2B86437B407; Mon, 6 May 2002 15:52:33 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6DD5237B405 for ; Mon, 6 May 2002 15:52:32 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g46MqWL36273 for perforce@freebsd.org; Mon, 6 May 2002 15:52:32 -0700 (PDT) (envelope-from arr@freebsd.org) Date: Mon, 6 May 2002 15:52:32 -0700 (PDT) Message-Id: <200205062252.g46MqWL36273@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to arr@freebsd.org using -f From: "Andrew R. Reiter" Subject: PERFORCE change 10913 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10913 Change 10913 by arr@arr_shibby on 2002/05/06 15:52:07 - Change audit_print_record -> _audit_print_record - Add the #define'd macro ``audit_print_record'' and have it wrap _audit_print_record, or nothing, depending on whether or not AUDIT_DEBUG is defined. Affected files ... ... //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#35 edit Differences ... ==== //depot/projects/trustedbsd/audit/sys/kern/kern_audit.c#35 (text+ko) ==== @@ -47,6 +47,8 @@ #include +#include "opt_audit.h" + /* * There might be a need to use another lock besides just audit_mtx * because of thrashing with the record_queue and memory allocation. @@ -59,6 +61,14 @@ static int audit_shutdown_flag = 0; static int audit_id = 0; +static __inline void _audit_print_record(audit_record_t *); + +#ifdef AUDIT_DEBUG +#define audit_print_record(ar) _audit_print_record((ar)) +#else +#define audit_print_record(ar) +#endif + /* * Re-add this later when handling the decrease in the pool * size can be properly handled. @@ -155,7 +165,7 @@ TAILQ_REMOVE(&record_queue, ar, ar_next); } if (ar != NULL) { - _audit_print_record(ar); + audit_print_record(ar); uma_zfree(record_zone, ar); } msleep(&record_queue, &audit_q_mtx, PWAIT, "record queue", 0); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message