diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-29 19:03:09 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-29 19:03:09 +0200 |
commit | 3adda3b6c77167987965c6334d136e702d6cecc8 (patch) | |
tree | ceee6ee8caace2ed707afae85e08192f836fb30c /dvbapi.c | |
parent | 44237c37017fe0dfd194da95d576f9a0eb4ea796 (diff) | |
download | vdr-3adda3b6c77167987965c6334d136e702d6cecc8.tar.gz vdr-3adda3b6c77167987965c6334d136e702d6cecc8.tar.bz2 |
New command line option '-l' to set the log level
Diffstat (limited to 'dvbapi.c')
-rw-r--r-- | dvbapi.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.16 2000/07/29 14:49:46 kls Exp $ + * $Id: dvbapi.c 1.17 2000/07/29 19:00:19 kls Exp $ */ #include "dvbapi.h" @@ -1158,10 +1158,12 @@ bool cDvbApi::Init(void) } } PrimaryDvbApi = dvbApi[0]; - if (NumDvbApis > 0) + if (NumDvbApis > 0) { isyslog(LOG_INFO, "found %d video device%s", NumDvbApis, NumDvbApis > 1 ? "s" : ""); - else + } // need braces because of isyslog-macro + else { esyslog(LOG_ERR, "ERROR: no video device found, giving up!"); + } return NumDvbApis > 0; } |