From 593c183c8cca30930b9b0e9eb9ba16fc83f7dddb Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Fri, 31 Jan 2020 05:14:44 +1100 Subject: [PATCH] Fix some compiler warnings in uart.c Signed-off-by: Anton Blanchard --- uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uart.c b/uart.c index afdf082..8529959 100644 --- a/uart.c +++ b/uart.c @@ -62,7 +62,7 @@ void uart_tx(unsigned char tx) tx_countbits--; if (tx == 1) { if (is_error(tx_countbits)) { - printf("START_BIT error %d %d\n", BITWIDTH, tx_countbits); + printf("START_BIT error %ld %ld\n", BITWIDTH, tx_countbits); tx_countbits = BITWIDTH*2; tx_state = ERROR; break; @@ -84,7 +84,7 @@ void uart_tx(unsigned char tx) if (tx != tx_prev) { if (is_error(tx_countbits)) { - printf("BITS error %d %d\n", BITWIDTH, tx_countbits); + printf("BITS error %ld %ld\n", BITWIDTH, tx_countbits); tx_countbits = BITWIDTH*2; tx_state = ERROR; break; @@ -104,7 +104,7 @@ void uart_tx(unsigned char tx) if (tx == 0) { if (is_error(tx_countbits)) { - printf("STOP_BIT error %d %d\n", BITWIDTH, tx_countbits); + printf("STOP_BIT error %ld %ld\n", BITWIDTH, tx_countbits); tx_countbits = BITWIDTH*2; tx_state = ERROR; break;