File: debug.h

package info (click to toggle)
libucimf 2.3.8-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,004 kB
  • sloc: sh: 10,860; cpp: 3,766; ansic: 789; makefile: 67
file content (9 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
#include <stdio.h>

#define UCIMF_ERR(format, ...)    	{extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[Err]:" format, ##__VA_ARGS__);} }
#define UCIMF_WARNING(format, ...)        {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[WARN]:" format, ##__VA_ARGS__);} }
#define UCIMF_INFO(format, ...)           {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[INFO]:" format, ##__VA_ARGS__);} }
#define UCIMF_DEBUG(format, ...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:" format, ##__VA_ARGS__);} }

#define UrINFO(format, ...) UCIMF_INFO(format, ##__VA_ARGS__)
#define UrDEBUG(format, ...) UCIMF_DEBUG(format, ##__VA_ARGS__)