From 9b5ceef2b3b914bfe49e255b5a5d88db94739301 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Jul 2011 11:49:26 +0200 Subject: Print propper number of strings in cli in case of DMA read --- cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cli.c b/cli.c index cdbf9be..7ac4a09 100644 --- a/cli.c +++ b/cli.c @@ -582,6 +582,7 @@ int ReadData(pcilib_t *handle, ACCESS_MODE mode, pcilib_dma_engine_addr_t dma, p err = pcilib_read_dma(handle, dmaid, addr, size, buf, &ret); if ((err)||(ret <= 0)) Error("No data is returned by DMA engine"); size = ret; + n = ret / abs(access); addr = 0; break; case ACCESS_FIFO: -- cgit v1.2.3