File: debug.h

package info (click to toggle)
libucimf 2.3.8-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,988 kB
  • ctags: 788
  • sloc: sh: 10,860; cpp: 3,766; ansic: 789; makefile: 67
file content (9 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (7)
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  );} }
#define UCIMF_WARNING(format...)        {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[WARN]:"format );} } 
#define UCIMF_INFO(format...)           {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[INFO]:"format );} } 
#define UCIMF_DEBUG(format...)          {extern int LogFd; if( LogFd >=0 ){ dprintf( LogFd, "[DEBUG]:"format);} } 

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