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