diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-08-18 21:49:47 +0200 |
---|---|---|
committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2025-08-23 10:13:36 +0200 |
commit | 047f4ed6c188de4e874895a6818c09f2460322bd (patch) | |
tree | 26400f440d0518af75431c37d35365b29883d61e | |
parent | 4f875bbd387f17ec5d0fd05f3c4346c5da8e048a (diff) | |
download | ouroboros-047f4ed6c188de4e874895a6818c09f2460322bd.tar.gz ouroboros-047f4ed6c188de4e874895a6818c09f2460322bd.zip |
ipcpd: Fix printf formatting in tests on raspbian
Fixes some printf formatting, which was failing the build on raspbian.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
-rw-r--r-- | src/ipcpd/unicast/dir/tests/dht_test.c | 2 | ||||
-rw-r--r-- | src/irmd/reg/tests/reg_test.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/unicast/dir/tests/dht_test.c b/src/ipcpd/unicast/dir/tests/dht_test.c index b6563a03..cb6b0f9f 100644 --- a/src/ipcpd/unicast/dir/tests/dht_test.c +++ b/src/ipcpd/unicast/dir/tests/dht_test.c @@ -1336,7 +1336,7 @@ static int test_dht_kv_find_value_rsp_msg_values(void) } if (upk->val->n_values != 8) { - printf("Not enough values in find_value_rsp (%zu != %zu).\n", + printf("Not enough values in find_value_rsp (%zu != %lu).\n", upk->val->n_values, 8UL); goto fail_unpack; } diff --git a/src/irmd/reg/tests/reg_test.c b/src/irmd/reg/tests/reg_test.c index e51fdfc0..d18f5733 100644 --- a/src/irmd/reg/tests/reg_test.c +++ b/src/irmd/reg/tests/reg_test.c @@ -598,7 +598,7 @@ static int test_insert_ipcps(void) } for (i = 0; i < 100; i++) { - sprintf(info.name, "%s-%ld", TEST_IPCP, i); + sprintf(info.name, "%s-%zd", TEST_IPCP, i); info.pid = TEST_PID + rand() % 10000; info.type = rand() % IPCP_INVALID; info.state = IPCP_INIT; /* set by spawn_ipcp */ |