Project

General

Profile

Download (732 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#ifndef _LOGGING_H
2
#define _LOGGING_H
3

    
4
#define DTUN	1
5
#define DVCO	2
6

    
7
/*! \brief different log levels */
8
#define LOGL_DEBUG	1	/*!< \brief debugging information */
9
#define LOGL_INFO	3
10
#define LOGL_NOTICE	5	/*!< \brief abnormal/unexpected condition */
11
#define LOGL_ERROR	7	/*!< \brief error condition, requires user action */
12
#define LOGL_FATAL	8	/*!< \brief fatal, program aborted */
13

    
14
#define LOGP(ss, level, fmt, args...) \
15
	logp2(ss, level, __FILE__, __LINE__, 0, fmt, ##args)
16

    
17
#define LOGPC(ss, level, fmt, args...) \
18
	logp2(ss, level, __FILE__, __LINE__, 1, fmt, ##args)
19

    
20
void logp2(int subsys, unsigned int level, char *file,
21
	   int line, int cont, const char *format, ...)
22
				__attribute__ ((format (printf, 6, 7)));
23

    
24
#endif
(5-5/12)
Add picture from clipboard (Maximum size: 48.8 MB)