summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-29 19:19:32 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-10-29 19:19:32 +0100
commit55961a80260cedc25eab90800253feaa94cffd16 (patch)
tree06955ef077c44e9d8850c2665cadcf593fbbf371
parentd08aee7b4f62d5e4b3202fe6e4d724f84963618b (diff)
downloadipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.gz
ipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.bz2
ipecamera-55961a80260cedc25eab90800253feaa94cffd16.tar.xz
ipecamera-55961a80260cedc25eab90800253feaa94cffd16.zip
Report errors during DMA read in cli
-rw-r--r--cli.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli.c b/cli.c
index 98a66b1..e273384 100644
--- a/cli.c
+++ b/cli.c
@@ -766,6 +766,10 @@ int ReadData(pcilib_t *handle, ACCESS_MODE mode, FLAGS flags, pcilib_dma_engine_
}
} while (err == PCILIB_ERROR_TOOBIG);
}
+
+ if ((err)&&(err != PCILIB_ERROR_TIMEOUT)) {
+ Error("Error (%i) during DMA read", err);
+ }
if (bytes <= 0) {
pcilib_warning("No data is returned by DMA engine");
return 0;