diff options
author | Mike Leach <mike.leach@linaro.org> | 2022-10-24 22:47:36 +0100 |
---|---|---|
committer | Mike Leach <mike.leach@linaro.org> | 2022-10-27 14:56:35 +0100 |
commit | 8c3a95cc3fae14c2c1b26401b3494b0e49dfdb95 (patch) | |
tree | 6ae3ba54e5db557498d26a666d237761948ad2f8 | |
parent | e4d29b20dd559d7f913cd186c38d6cb8b4ac016c (diff) | |
download | OpenCSD-8c3a95cc3fae14c2c1b26401b3494b0e49dfdb95.tar.gz |
opencsd: tests: Fix build warning in c_api_pkt_print_test
Signed-off-by: Mike Leach <mike.leach@linaro.org>
-rw-r--r-- | decoder/tests/source/c_api_pkt_print_test.c | 4 |
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 fa9f48d..b930e05 100644 --- a/decoder/tests/source/c_api_pkt_print_test.c +++ b/decoder/tests/source/c_api_pkt_print_test.c @@ -903,8 +903,8 @@ 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 %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); + sprintf(packet_str, "Total Bytes %ld; Unsynced Bytes: %ld\nBad Header Errors: %d; Bad sequence errors: %d\n", (long)p_stats->channel_total, + (long)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); } else |