bsp/xilinx-zynq: Change devcfg prints to printk

Updates #5142
This commit is contained in:
Chris Johns
2024-10-31 14:01:33 +11:00
parent fbbbe04cf5
commit 45308bcc32

View File

@@ -46,7 +46,6 @@
* *
* Author: Patrick Gauvin <gauvin@hcs.ufl.edu> * Author: Patrick Gauvin <gauvin@hcs.ufl.edu>
*/ */
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
@@ -60,7 +59,9 @@
#include <dev/devcfg/zynq-devcfg.h> #include <dev/devcfg/zynq-devcfg.h>
#include <dev/devcfg/zynq-devcfg-regs.h> #include <dev/devcfg/zynq-devcfg-regs.h>
#define WARN( msg ) printf( "%s:%s: %s", __FILE__, __func__, msg ) #include <rtems/bspIo.h>
#define WARN( msg ) printk( "%s:%s: %s", __FILE__, __func__, msg )
/* Timeout for interrupt waits, 2 seconds should be enough for any operation. /* Timeout for interrupt waits, 2 seconds should be enough for any operation.
*/ */
#define INT_TIMEOUT ( 2 * rtems_clock_get_ticks_per_second() ) #define INT_TIMEOUT ( 2 * rtems_clock_get_ticks_per_second() )
@@ -228,11 +229,11 @@ static int pcap_dma_xfer(
} }
#ifdef ZYNQ_DEVCFG_DEBUG #ifdef ZYNQ_DEVCFG_DEBUG
printf( "DMA TRANSFER REQUESTED:\n" ); printk( "DMA TRANSFER REQUESTED:\n" );
printf( "Source: %p\n", src ); printk( "Source: %p\n", src );
printf( "Source length: %zu\n", src_len ); printk( "Source length: %zu\n", src_len );
printf( "Destination: %p\n", dst ); printk( "Destination: %p\n", dst );
printf( "Destination length: %zu\n", dst_len ); printk( "Destination length: %zu\n", dst_len );
#endif /* ZYNQ_DEVCFG_DEBUG */ #endif /* ZYNQ_DEVCFG_DEBUG */
/* Check if the command queue is full */ /* Check if the command queue is full */