summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;