dmaps: Minor cleanup

Removed xil_printf messages that are confusing the regression
test results analyzer.
Fixed the incorrect header file inclusions.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
Punnaiah Choudary Kalluri 2014-07-10 10:18:25 +05:30 committed by Jagannadha Sutradharudu Teki
parent f68785b515
commit a656eeaa1b

View file

@ -1350,8 +1350,6 @@ int XDmaPs_GenDmaProg(XDmaPs *InstPtr, unsigned int Channel, XDmaPs_Cmd *Cmd)
if (ChanCtrl->SrcBurstSize * ChanCtrl->SrcBurstLen
!= ChanCtrl->DstBurstSize * ChanCtrl->DstBurstLen) {
xil_printf("source burst_size * burst_len does not match "
"that of destination\r\n");
return XST_FAILURE;
}
@ -1360,19 +1358,15 @@ int XDmaPs_GenDmaProg(XDmaPs *InstPtr, unsigned int Channel, XDmaPs_Cmd *Cmd)
* unaligned fixed address is not supported
*/
if (!ChanCtrl->SrcInc && Cmd->BD.SrcAddr % ChanCtrl->SrcBurstSize) {
xil_printf("source address is fixed but is unaligned\r\n");
return XST_FAILURE;
}
if (!ChanCtrl->DstInc && Cmd->BD.DstAddr % ChanCtrl->DstBurstSize) {
xil_printf("destination address is fixed but is "
"unaligned\r\n");
return XST_FAILURE;
}
Buf = XDmaPs_BufPool_Allocate(ChanData->ProgBufPool);
if (Buf == NULL) {
xil_printf("failed to allocate program buffer\r\n");
return XST_FAILURE;
}