From 8da61292f595c5e700a4fef981b0e0d07910b4b2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 30 Apr 2015 19:51:49 +0200 Subject: Provide an interface for logging debug messages --- dma/nwl_engine_buffers.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'dma/nwl_engine_buffers.h') diff --git a/dma/nwl_engine_buffers.h b/dma/nwl_engine_buffers.h index 71fb736..d3af079 100644 --- a/dma/nwl_engine_buffers.h +++ b/dma/nwl_engine_buffers.h @@ -33,9 +33,7 @@ static int dma_nwl_compute_read_s2c_pointers(nwl_dma_t *ctx, pcilib_nwl_engine_c return PCILIB_ERROR_INVALID_STATE; } -#ifdef DEBUG_NWL - printf("S2C: %lu %lu\n", ectx->tail, ectx->head); -#endif /* DEBUG_NWL */ + pcilib_debug(DMA, "S2C: %lu %lu\n", ectx->tail, ectx->head); return 0; } @@ -61,9 +59,7 @@ static int dma_nwl_compute_read_c2s_pointers(nwl_dma_t *ctx, pcilib_nwl_engine_c ectx->tail = ectx->head + 1; if (ectx->tail == PCILIB_NWL_DMA_PAGES) ectx->tail = 0; -#ifdef DEBUG_NWL - printf("C2S: %lu %lu\n", ectx->tail, ectx->head); -#endif /* DEBUG_NWL */ + pcilib_debug(DMA, "C2S: %lu %lu\n", ectx->tail, ectx->head); return 0; } -- cgit v1.2.3