diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-02-10 15:50:53 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-02-10 15:50:53 +0100 |
commit | e43e5999f2af8b69185e0c627515cca755150418 (patch) | |
tree | 0dc7ad6abdae66bf6fa3a4af069414b7c754d744 /dma | |
parent | c2331dd0cafe7c483525af7ef87e03386aeee14a (diff) | |
download | ipecamera-e43e5999f2af8b69185e0c627515cca755150418.tar.gz ipecamera-e43e5999f2af8b69185e0c627515cca755150418.tar.bz2 ipecamera-e43e5999f2af8b69185e0c627515cca755150418.tar.xz ipecamera-e43e5999f2af8b69185e0c627515cca755150418.zip |
Only complain on empty_detected flag if debugging is one
Diffstat (limited to 'dma')
-rw-r--r-- | dma/ipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -414,10 +414,10 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin // Failing out if we exited on timeout if ((ctx->last_read_addr == (*last_written_addr_ptr))||(*last_written_addr_ptr == 0)) { #ifdef IPEDMA_SUPPORT_EMPTY_DETECTED -//# ifdef IPEDMA_DEBUG +# ifdef IPEDMA_DEBUG if ((wait)&&(*last_written_addr_ptr)&&(!*empty_detected_ptr)) pcilib_warning("The empty_detected flag is not set, but no data arrived within %lu us\n", wait); -//# endif /* IPEDMA_DEBUG */ +# endif /* IPEDMA_DEBUG */ #endif /* IPEDMA_SUPPORT_EMPTY_DETECTED */ return (ret&PCILIB_STREAMING_FAIL)?PCILIB_ERROR_TIMEOUT:0; } |