laforge submitted this change.
tests: soft_uart: Fix printf int type format
This fixes a compiler error when compiling in rpi3.
Change-Id: Ib8f190c81f20a28081b06cbd3de099f2b87372f4
---
M tests/soft_uart/soft_uart_test.c
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/soft_uart/soft_uart_test.c b/tests/soft_uart/soft_uart_test.c
index 7280bdc..a7de251 100644
--- a/tests/soft_uart/soft_uart_test.c
+++ b/tests/soft_uart/soft_uart_test.c
@@ -389,14 +389,14 @@
g_tx_cb_cfg.data = (void *)"\x55";
g_tx_cb_cfg.data_len = 1;
- printf("======== pulling %lu bits (%u at a time)\n", sizeof(tx_buf), n);
+ printf("======== pulling %zu bits (%u at a time)\n", sizeof(tx_buf), n);
for (unsigned int i = 0; i < sizeof(tx_buf); i += n) {
rc = osmo_soft_uart_tx_ubits(suart, &tx_buf[i], n);
OSMO_ASSERT(rc == n);
}
printf("%s\n", osmo_ubit_dump(&tx_buf[0], sizeof(tx_buf)));
- printf("======== feeding %lu bits into the receiver\n", sizeof(tx_buf));
+ printf("======== feeding %zu bits into the receiver\n", sizeof(tx_buf));
rc = osmo_soft_uart_rx_ubits(suart, &tx_buf[0], sizeof(tx_buf));
OSMO_ASSERT(rc == 0);
osmo_soft_uart_flush_rx(suart);
To view, visit change 39554. To unsubscribe, or for help writing mail filters, visit settings.