Module: xenomai-abe
Branch: analogy
Commit: 4a752762318eab4a10d04718185d444a90919b88
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=4a752762318eab4a10d04718185d444a90919b88

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Dec  9 22:31:04 2009 +0100

analogy: add a kernel error message when a driver rejects a command

---

 ksrc/drivers/analogy/command.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ksrc/drivers/analogy/command.c b/ksrc/drivers/analogy/command.c
index 2fb9344..e227b97 100644
--- a/ksrc/drivers/analogy/command.c
+++ b/ksrc/drivers/analogy/command.c
@@ -342,8 +342,10 @@ int a4l_ioctl_cmd(a4l_cxt_t * cxt, void *arg)
                ret = dev->transfer.subds[cmd_desc->idx_subd]->
                        do_cmdtest(dev->transfer.subds[cmd_desc->idx_subd], 
                                   cmd_desc);
-       if (ret != 0)
+       if (ret != 0) {
+               __a4l_err("a4l_ioctl_cmd: driver's cmd_test failed\n");
                goto out_ioctl_cmd;
+       }
 
        __a4l_dbg(1, core_dbg, 
                  "a4l_ioctl_cmd: driver's cmd checks passed\n");


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to