Module: xenomai-2.5
Branch: master
Commit: 1d77df7dda877368ff9cdfdd053890bf2c6306c3
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=1d77df7dda877368ff9cdfdd053890bf2c6306c3

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

analogy: add a missing error message in insn_write

---

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

diff --git a/src/utils/analogy/insn_write.c b/src/utils/analogy/insn_write.c
index 2fcd7f4..9d61dc8 100644
--- a/src/utils/analogy/insn_write.c
+++ b/src/utils/analogy/insn_write.c
@@ -281,8 +281,11 @@ int main(int argc, char *argv[])
        ret = a4l_sync_write(&dsc, 
                             idx_subd, CHAN(idx_chan), 0, &value, scan_size);
 
-       if (ret < 0)
+       if (ret < 0) {
+               fprintf(stderr, 
+                       "insn_write: a4l_sync_write failed (err=%d)\n", ret);
                goto out_insn_write;
+       }
 
        if (verbose != 0)
                printf("insn_write: %u bytes successfully sent\n", scan_size);


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

Reply via email to