From be1c6aa07882e812eb0ac56505709e71f51132b1 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 31 May 2018 14:39:14 +0200 Subject: [PATCH] Fix compilation warnings --- lib/test/common/test_eea1.cc | 18 +++++++++--------- lib/test/common/test_eea2.cc | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/test/common/test_eea1.cc b/lib/test/common/test_eea1.cc index 9e84842aa..7e090fa8b 100644 --- a/lib/test/common/test_eea1.cc +++ b/lib/test/common/test_eea1.cc @@ -452,7 +452,7 @@ void test_set_6() direction, msg, len_bits, out); gettimeofday(&t[2], NULL); get_time_interval(t); - printf("encryption: %d bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, t[0].tv_usec, (float) len_bits/t[0].tv_usec); + printf("encryption: %u bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec, (float) len_bits/t[0].tv_usec); assert(err_lte == LIBLTE_SUCCESS); // compare cipher text @@ -465,7 +465,7 @@ void test_set_6() direction, ct, len_bits, out); gettimeofday(&t[2], NULL); get_time_interval(t); - printf("decryption: %d bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, t[0].tv_usec, (float) len_bits/t[0].tv_usec); + printf("decryption: %u bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec, (float) len_bits/t[0].tv_usec); assert(err_lte == LIBLTE_SUCCESS); // compare cipher text @@ -570,12 +570,12 @@ void test_set_1_invalid() */ int main(int argc, char * argv[]) { - // test_set_1(); - // test_set_2(); - //test_set_3(); - //test_set_4(); - //test_set_5(); + test_set_1(); + test_set_2(); + test_set_3(); + test_set_4(); + test_set_5(); test_set_6(); - //test_set_1_block_size(); - //test_set_1_invalid(); + test_set_1_block_size(); + test_set_1_invalid(); } diff --git a/lib/test/common/test_eea2.cc b/lib/test/common/test_eea2.cc index d65e417c6..d2e8c95cc 100644 --- a/lib/test/common/test_eea2.cc +++ b/lib/test/common/test_eea2.cc @@ -452,7 +452,7 @@ void test_set_6() } gettimeofday(&t[2], NULL); get_time_interval(t); - printf("encryption: %d bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec/100, (float) 100*len_bits/t[0].tv_usec); + printf("encryption: %u bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec/100, (float) 100*len_bits/t[0].tv_usec); assert(err_lte == LIBLTE_SUCCESS); // compare cipher text @@ -467,7 +467,7 @@ void test_set_6() } gettimeofday(&t[2], NULL); get_time_interval(t); - printf("decryption: %d bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec/100, (float) 100*len_bits/t[0].tv_usec); + printf("decryption: %u bits, t=%d us, rate=%.1f Mbps/s\n", len_bits, (int) t[0].tv_usec/100, (float) 100*len_bits/t[0].tv_usec); assert(err_lte == LIBLTE_SUCCESS); // compare cipher text