Date: Mon, 6 May 2002 15:52:32 -0700 (PDT) From: "Andrew R. Reiter" <arr@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10913 for review Message-ID: <200205062252.g46MqWL36273@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <vm/uma.h> +#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205062252.g46MqWL36273>