From 4b76aaeeab04e08f7358f7089c9abc5415f8e8fc Mon Sep 17 00:00:00 2001 From: dp111 <19616418+dp111@users.noreply.github.com> Date: Fri, 10 Mar 2023 21:43:35 +0000 Subject: [PATCH] Correct type in printf (#343) --- dma/sniff_crc/sniff_crc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dma/sniff_crc/sniff_crc.c b/dma/sniff_crc/sniff_crc.c index c955c17..725c682 100644 --- a/dma/sniff_crc/sniff_crc.c +++ b/dma/sniff_crc/sniff_crc.c @@ -89,7 +89,7 @@ int main() { dma_channel_wait_for_finish_blocking(chan); uint32_t sniffed_crc = dma_sniffer_get_data_accumulator(); - printf("Completed DMA sniff of %d byte buffer, DMA sniff accumulator value: 0x%lx\n", TOTAL_LEN, sniffed_crc); + printf("Completed DMA sniff of %d byte buffer, DMA sniff accumulator value: 0x%x\n", TOTAL_LEN, sniffed_crc); if (0ul == sniffed_crc) { printf("CRC32 check is good\n");