1 /******************************************************************************
2  *
3  * Copyright (c) 2009 Citrix Systems, Inc. (Grzegorz Milos)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; If not, see <http://www.gnu.org/licenses/>.
17  */
18 #ifndef __MEMSHR_PRIV_H__
19 #define __MEMSHR_PRIV_H__
20 
21 #include <syslog.h>
22 #include <xenctrl.h>
23 #include "memshr.h"
24 
25 #if 1
26 #define DPRINTF(_f, _a...) syslog(LOG_INFO, _f, ##_a)
27 #else
28 #define DPRINTF(_f, _a...) ((void)0)
29 #endif
30 
31 #define EPRINTF(_f, _a...) syslog(LOG_ERR, "memshr:%s: " _f, __func__, ##_a)
32 
33 #endif /* __MEMSHR_PRIV_H__ */
34