aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Leach <mike.leach@linaro.org>2021-09-20 14:57:02 +0100
committerMike Leach <mike.leach@linaro.org>2021-10-10 10:04:23 +0100
commit8c8be4aa5ad7b49e2fc4ed998bdb3b09e94994b7 (patch)
treef5530dacd221c7249404e1d3e4c706010946e6a4
parent51aef80eddb7df9b606d3b99f7db852e4ce89e35 (diff)
build: tests: Fix build warnings in C-API test program
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rw-r--r--decoder/tests/source/c_api_pkt_print_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoder/tests/source/c_api_pkt_print_test.c b/decoder/tests/source/c_api_pkt_print_test.c
index 01e48cf1488e..fa9f48d7694f 100644
--- a/decoder/tests/source/c_api_pkt_print_test.c
+++ b/decoder/tests/source/c_api_pkt_print_test.c
@@ -903,7 +903,7 @@ void print_statistics(dcd_tree_handle_t dcdtree_handle)
err = ocsd_dt_get_decode_stats(dcdtree_handle, test_trc_id_override, &p_stats);
if (!err && p_stats)
{
- sprintf(packet_str, "Total Bytes %lld; Unsynced Bytes: %lld\nBad Header Errors: %d; Bad sequence errors: %d\n", p_stats->channel_total,
+ sprintf(packet_str, "Total Bytes %ld; Unsynced Bytes: %ld\nBad Header Errors: %d; Bad sequence errors: %d\n", p_stats->channel_total,
p_stats->channel_unsynced, p_stats->bad_header_errs, p_stats->bad_sequence_errs);
ocsd_dt_reset_decode_stats(dcdtree_handle, test_trc_id_override);
}
@@ -1042,7 +1042,7 @@ int test_err_api()
ocsd_err_str(ret, err_buffer, ERR_BUFFER_SIZE);
printf("testing error API for code %d: %s\n", ret, err_buffer);
err_test = ocsd_get_last_err(&err_index, &cs_id, err_buffer, ERR_BUFFER_SIZE);
- printf("get last error:\ncode = 0x%02x; trace index %ld; cs_id 0x%02x;\nstring: %s\n", err_test, err_index, cs_id, err_buffer);
+ printf("get last error:\ncode = 0x%02x; trace index %d; cs_id 0x%02x;\nstring: %s\n", err_test, err_index, cs_id, err_buffer);
}
return ret;