1 /*	$NetBSD: logging.c,v 1.1.1.1 2009/12/02 00:27:10 haad Exp $	*/
2 
3 /*
4  * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
5  *
6  * This copyrighted material is made available to anyone wishing to use,
7  * modify, copy, or redistribute it subject to the terms and conditions
8  * of the GNU Lesser General Public License v.2.1.
9  *
10  * You should have received a copy of the GNU Lesser General Public License
11  * along with this program; if not, write to the Free Software Foundation,
12  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
13  */
14 #include <stdio.h>
15 #include <syslog.h>
16 
17 char *__rq_types_off_by_one[] = {
18 	"DM_ULOG_CTR",
19 	"DM_ULOG_DTR",
20 	"DM_ULOG_PRESUSPEND",
21 	"DM_ULOG_POSTSUSPEND",
22 	"DM_ULOG_RESUME",
23 	"DM_ULOG_GET_REGION_SIZE",
24 	"DM_ULOG_IS_CLEAN",
25 	"DM_ULOG_IN_SYNC",
26 	"DM_ULOG_FLUSH",
27 	"DM_ULOG_MARK_REGION",
28 	"DM_ULOG_CLEAR_REGION",
29 	"DM_ULOG_GET_RESYNC_WORK",
30 	"DM_ULOG_SET_REGION_SYNC",
31 	"DM_ULOG_GET_SYNC_COUNT",
32 	"DM_ULOG_STATUS_INFO",
33 	"DM_ULOG_STATUS_TABLE",
34 	"DM_ULOG_IS_REMOTE_RECOVERING",
35 	NULL
36 };
37 
38 int log_tabbing = 0;
39 int log_is_open = 0;
40 
41 /*
42  * Variables for various conditional logging
43  */
44 #ifdef MEMB
45 int log_membership_change = 1;
46 #else
47 int log_membership_change = 0;
48 #endif
49 
50 #ifdef CKPT
51 int log_checkpoint = 1;
52 #else
53 int log_checkpoint = 0;
54 #endif
55 
56 #ifdef RESEND
57 int log_resend_requests = 1;
58 #else
59 int log_resend_requests = 0;
60 #endif
61