aboutsummaryrefslogtreecommitdiff
path: root/decoder/tests/source/c_api_pkt_print_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/tests/source/c_api_pkt_print_test.c')
-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 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