From 55961a80260cedc25eab90800253feaa94cffd16 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 29 Oct 2012 19:19:32 +0100 Subject: Report errors during DMA read in cli --- cli.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3