diff options
author | phintuka <phintuka> | 2008-11-15 13:52:25 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-11-15 13:52:25 +0000 |
commit | 3ebda9b06a6a17a96e4016c4e2c1c7889b4359f7 (patch) | |
tree | 27304e503d19650d150d04c218d3887b760881c6 | |
parent | b9dbe8f1eef5a8d3bd67e484ce49840700e81845 (diff) | |
download | xineliboutput-3ebda9b06a6a17a96e4016c4e2c1c7889b4359f7.tar.gz xineliboutput-3ebda9b06a6a17a96e4016c4e2c1c7889b4359f7.tar.bz2 |
Added verbose debug logging
(can be enabled with command-line option -vv or --verbose --verbose)
-rw-r--r-- | xine_frontend_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xine_frontend_main.c b/xine_frontend_main.c index 3bc6d686..5f767560 100644 --- a/xine_frontend_main.c +++ b/xine_frontend_main.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend_main.c,v 1.59 2008-11-13 23:29:41 phintuka Exp $ + * $Id: xine_frontend_main.c,v 1.60 2008-11-15 13:52:25 phintuka Exp $ * */ @@ -33,7 +33,7 @@ #include "xine_frontend_lirc.h" /* next symbol is dynamically linked from input plugin */ -int SysLogLevel __attribute__((visibility("default"))) = 2; /* errors and info, no debug */ +int SysLogLevel __attribute__((visibility("default"))) = SYSLOGLEVEL_INFO; /* errors and info, no debug */ /* static data */ @@ -443,7 +443,7 @@ int main(int argc, char *argv[]) PRINTF("LIRC device: %s%s\n", lirc_dev, repeat_emu?", emulating key repeat":""); break; - case 'v': SysLogLevel = 3; + case 'v': SysLogLevel = (SysLogLevel<SYSLOGLEVEL_DEBUG) ? SYSLOGLEVEL_DEBUG : SysLogLevel+1; PRINTF("Verbose mode\n"); break; case 's': SysLogLevel = 1; |