summaryrefslogtreecommitdiffstats
path: root/openbsc/tests/abis
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-23 11:55:23 -0400
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-23 17:01:09 -0400
commit8e6ecc96677a4353768296ce79d9fc52ad6ca6e1 (patch)
tree3ad9ea46c291b39c5c5a88a9d2d19ef9b7e89e90 /openbsc/tests/abis
parentadc17268fc40a63ebaf2bbbdf3109fc66638c9ae (diff)
misc: Fix warnings about size of size_t in printf
Fixes warnings like: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat]
Diffstat (limited to 'openbsc/tests/abis')
-rw-r--r--openbsc/tests/abis/abis_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/tests/abis/abis_test.c b/openbsc/tests/abis/abis_test.c
index e7e78d2..53e8a4c 100644
--- a/openbsc/tests/abis/abis_test.c
+++ b/openbsc/tests/abis/abis_test.c
@@ -61,7 +61,7 @@ static void test_simple_sw_config(void)
}
if (descr[0].len != 13) {
- printf("WRONG SIZE: %d\n", descr[0].len);
+ printf("WRONG SIZE: %zu\n", descr[0].len);
abort();
}
@@ -99,12 +99,12 @@ static void test_dual_sw_config(void)
}
if (descr[0].len != 13) {
- printf("WRONG SIZE0: %d\n", descr[0].len);
+ printf("WRONG SIZE0: %zu\n", descr[0].len);
abort();
}
if (descr[1].len != 13) {
- printf("WRONG SIZE1: %d\n", descr[1].len);
+ printf("WRONG SIZE1: %zu\n", descr[1].len);
abort();
}