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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sun Jan 24 23:32:26 2010 +0100

analogy: add a missing error message in insn_read

---

 src/utils/analogy/insn_read.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/analogy/insn_read.c b/src/utils/analogy/insn_read.c
index eec0fd3..16fbb5a 100644
--- a/src/utils/analogy/insn_read.c
+++ b/src/utils/analogy/insn_read.c
@@ -368,8 +368,12 @@ int main(int argc, char *argv[])
                ret = a4l_sync_read(&dsc,
                                    idx_subd, CHAN(idx_chan), 0, buf, tmp);
 
-               if (ret < 0)
+               if (ret < 0) {
+                       fprintf(stderr, 
+                               "insn_read: a4l_sync_read failed (err=%d)\n",
+                               ret);
                        goto out_insn_read;
+               }
 
                /* Dump the read data */
                tmp = dump_function(&dsc, buf, ret);


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

Reply via email to