summaryrefslogtreecommitdiff
path: root/svdrp.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-03-20 15:15:42 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-03-20 15:15:42 +0100
commitf1494502a736ef07cd37786f63a9478d5ed89341 (patch)
tree819c24d779a2d38ba7926510f68773454927a7e0 /svdrp.c
parentf1c9ad7a5e9b080f6c8f02abb4705d593122f86f (diff)
downloadvdr-f1494502a736ef07cd37786f63a9478d5ed89341.tar.gz
vdr-f1494502a736ef07cd37786f63a9478d5ed89341.tar.bz2
All log entries regarding timers now contain a short description of the timer1.3.23
Diffstat (limited to 'svdrp.c')
-rw-r--r--svdrp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/svdrp.c b/svdrp.c
index be7d161b..71015023 100644
--- a/svdrp.c
+++ b/svdrp.c
@@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
- * $Id: svdrp.c 1.68 2005/03/19 16:05:33 kls Exp $
+ * $Id: svdrp.c 1.69 2005/03/20 15:04:00 kls Exp $
*/
#include "svdrp.h"
@@ -529,9 +529,9 @@ void cSVDRP::CmdDELT(const char *Option)
cTimer *timer = Timers.Get(strtol(Option, NULL, 10) - 1);
if (timer) {
if (!timer->Recording()) {
+ isyslog("deleting timer %s", *timer->ToDescr());
Timers.Del(timer);
Timers.SetModified();
- isyslog("timer %s deleted", Option);
Reply(250, "Timer \"%s\" deleted", Option);
}
else
@@ -919,7 +919,7 @@ void cSVDRP::CmdMODT(const char *Option)
}
*timer = t;
Timers.SetModified();
- isyslog("timer %d modified (%s)", timer->Index() + 1, timer->HasFlags(tfActive) ? "active" : "inactive");
+ isyslog("timer %s modified (%s)", *timer->ToDescr(), timer->HasFlags(tfActive) ? "active" : "inactive");
Reply(250, "%d %s", timer->Index() + 1, *timer->ToText());
}
else
@@ -977,7 +977,7 @@ void cSVDRP::CmdNEWT(const char *Option)
if (!t) {
Timers.Add(timer);
Timers.SetModified();
- isyslog("timer %d added", timer->Index() + 1);
+ isyslog("timer %s added", *timer->ToDescr());
Reply(250, "%d %s", timer->Index() + 1, *timer->ToText());
return;
}
@@ -1051,11 +1051,11 @@ void cSVDRP::CmdUPDT(const char *Option)
t->Parse(Option);
delete timer;
timer = t;
- isyslog("timer %d updated", timer->Index() + 1);
+ isyslog("timer %s updated", *timer->ToDescr());
}
else {
Timers.Add(timer);
- isyslog("timer %d added", timer->Index() + 1);
+ isyslog("timer %s added", *timer->ToDescr());
}
Timers.SetModified();
Reply(250, "%d %s", timer->Index() + 1, *timer->ToText());