[vlc-devel] [PATCH] dtv: More detailed DiSEqC error messages.

Zoran Turalija zoran.turalija at gmail.com
Sat Mar 30 08:52:18 CET 2013


Error messages were reused from time when there was no uncommitted
switch support. Now we have support for this feature, and we can
supply better error messages, because we know in more details what
has happened at times when error occured.
---
 modules/access/dtv/linux.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/access/dtv/linux.c b/modules/access/dtv/linux.c
index 7f3de92..cb3315f 100644
--- a/modules/access/dtv/linux.c
+++ b/modules/access/dtv/linux.c
@@ -810,21 +810,22 @@ known:
           uncmd.msg_len = 4; /* length */
           if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
           {
-              msg_Err (d->obj, "cannot send DiSEqC command: %m");
+              msg_Err (d->obj, "cannot send uncommitted DiSEqC command: %m");
               return -1;
           }
           /* Repeat uncommitted command */
           uncmd.msg[0] = 0xE1; /* framing: master, no reply, repeated TX */
           if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
           {
-              msg_Err (d->obj, "cannot send DiSEqC command: %m");
+              msg_Err (d->obj,
+                       "cannot send repeated uncommitted DiSEqC command: %m");
               return -1;
           }
           msleep(125000); /* wait 125 ms before committed DiSEqC command */
         }
         if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &cmd) < 0)
         {
-            msg_Err (d->obj, "cannot send DiSEqC command: %m");
+            msg_Err (d->obj, "cannot send committed DiSEqC command: %m");
             return -1;
         }
         msleep (54000 + 15000);
-- 
1.7.10.4


-- 
Kind regards,
Zoran Turalija



More information about the vlc-devel mailing list