initial import
[libicd-wpa] / log.h
1 /**
2   @file log.h
3
4   Copyright (C) 2004 Nokia Corporation. All rights reserved.
5
6   @author Johan Hedberg <johan.hedberg@nokia.com>
7
8   This program is free software; you can redistribute it and/or modify it
9   under the terms of the GNU General Public License as published by the
10   Free Software Foundation; either version 2 of the License, or (at your
11   option) any later version.
12
13   This program is distributed in the hope that it will be useful, but
14   WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   General Public License for more details.
17
18   You should have received a copy of the GNU General Public License along
19   with this program; if not, write to the Free Software Foundation, Inc.,
20   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
22 */
23 #ifndef _LOG_H_
24 #define _LOG_H_
25
26 #include <stdlib.h>
27 #include <osso-log.h>
28
29 /** Print error message and exit */
30 #define die(...) do {   \
31     DLOG_ERR(__VA_ARGS__); \
32     exit(EXIT_FAILURE); \
33 } while (0)
34
35 #endif /* _LOG_H_ */