fixeria has uploaded this change for review.

View Change

tests: soft_uart: Fix printf int type format

This fixes a compiler error when compiling in rpi3.

Change-Id: Ib8f190c81f20a28081b06cbd3de099f2b87372f4
(cherry picked from commit 4150c2e6b010aee1e087b206ed43a29d569ebd3d)
---
M tests/soft_uart/soft_uart_test.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/40220/1
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 40220. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: rel-1.11.1
Gerrit-Change-Id: Ib8f190c81f20a28081b06cbd3de099f2b87372f4
Gerrit-Change-Number: 40220
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-CC: pespin <pespin@sysmocom.de>