summaryrefslogtreecommitdiff
path: root/tvision/include/tv/linux/log.h
blob: 3b3c3fc82ff3a8f52f48eaab29f83ca37d8e5530 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**[txh]********************************************************************

  Debug logger helper Copyright 1996-1998 by Robert Hoehne
  Description:
  Used to debug Linux driver.
  I (SET) moved it here to avoid repeating it in each module.
  The idea is from Robert, I usually use another approach.
  
***************************************************************************/

#if defined(TVOSf_Linux) && !defined(LOGLINUXDEBUG_INCLUDED)
#define LOGLINUXDEBUG_INCLUDED

//#define DEBUG
#ifdef DEBUG
 extern char *program_invocation_short_name;
 #define LOG(s) do {CLY_std(cerr) << program_invocation_short_name << ": " << s << CLY_std(endl); fflush(stderr);} while(0)
#else
 #define LOG(s) do {;} while(0)
#endif

#else
 #define LOG(s) do {;} while(0)
#endif // LOGLINUXDEBUG_INCLUDED