summaryrefslogtreecommitdiff
path: root/radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'radio.c')
-rw-r--r--radio.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/radio.c b/radio.c
index 99c4a6f..f2f8c43 100644
--- a/radio.c
+++ b/radio.c
@@ -61,7 +61,7 @@ int S_RtMsgItems = 0;
int S_RassText = 1;
int S_ExtInfo = 0;
uint32_t rt_color[9];
-int S_Verbose = 1;
+int S_Verbose = 0;
int S_Encrypted = 0;
// Radiotext
char RT_Text[5][RT_MEL];
@@ -187,37 +187,38 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[])
while ((c = getopt_long(argc, argv, "f:d:l:r:e:v:", long_options, NULL)) != -1) {
switch (c) {
case 'f':
- printf("vdr-radio: arg files-dir = %s\n", optarg);
+ isyslog("vdr-radio: arg files-dir = %s", optarg);
ConfigDir = strdup(optarg);
ConfigDirParam = true;
break;
case 'd':
- printf("vdr-radio: arg data-dir = %s\n", optarg);
+ isyslog("vdr-radio: arg data-dir = %s", optarg);
DataDir = strdup(optarg);
DataDirParam = true;
break;
case 'l':
- printf("vdr-radio: arg live-mpeg = %s\n", optarg);
+ isyslog("vdr-radio: arg live-mpeg = %s", optarg);
LiveFile = strdup(optarg);
LiveFileParam = true;
break;
case 'r':
- printf("vdr-radio: arg replay-mpeg = %s\n", optarg);
+ isyslog("vdr-radio: arg replay-mpeg = %s", optarg);
ReplayFile = strdup(optarg);
ReplayFileParam = true;
break;
case 'v':
- printf("vdr-radio: arg verbose = %s\n", optarg);
- if (isnumber(optarg))
+ isyslog("vdr-radio: arg verbose = %s", optarg);
+ if (isnumber(optarg)) {
S_Verbose = atoi(optarg);
+ }
break;
case 'e':
- printf("vdr-radio: arg encrypted = %s\n", optarg);
+ isyslog("vdr-radio: arg encrypted = %s", optarg);
if (isnumber(optarg))
S_Encrypted = atoi(optarg);
break;
default:
- printf("vdr-radio: arg char = %c\n", c);
+ isyslog("vdr-radio: arg char = %c\n", c);
return false;
}
}
@@ -228,7 +229,7 @@ bool cPluginRadio::ProcessArgs(int argc, char *argv[])
bool cPluginRadio::Start(void)
{
// Start any background activities the plugin shall perform.
- printf("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n");
+ isyslog("vdr-radio: Radio-Plugin Backgr.Image/RDS-Text starts...\n");
radioImage = new cRadioImage;
if (!radioImage)