@@ -188,10 +188,14 @@ do { \
188
188
{ \
189
189
mbedtls_printf (" Feature unsupported\n " ); \
190
190
break ; \
191
- } else if (ret != 0 ) { \
191
+ } \
192
+ else if (ret != 0 ) \
193
+ { \
192
194
PRINT_ERROR (ret, " Public function" ); \
193
195
goto exit; \
194
- } else { \
196
+ } \
197
+ else \
198
+ { \
195
199
mbedtls_printf (" %6lu ms/" TYPE, ms); \
196
200
mbedtls_printf (" \n " ); \
197
201
} \
@@ -1086,7 +1090,7 @@ MBED_NOINLINE static int benchmark_ecdsa()
1086
1090
mbedtls_ecdsa_init (&ecdsa);
1087
1091
1088
1092
ret = mbedtls_snprintf (title, sizeof (title), " ECDSA-%s" ,
1089
- curve_info->name );
1093
+ curve_info->name );
1090
1094
if (ret < 0 || static_cast <size_t >(ret) >= sizeof (title)) {
1091
1095
mbedtls_printf (" Failed to compose title string using "
1092
1096
" mbedtls_snprintf(): %d\n " , ret);
@@ -1239,8 +1243,6 @@ MBED_NOINLINE static int benchmark_ecdh()
1239
1243
1240
1244
ecp_clear_precomputed (&ecdh.grp );
1241
1245
1242
-
1243
-
1244
1246
/*
1245
1247
* Benchmarking this requires two function calls that can fail. We
1246
1248
* add a check in between them to check for any errors. In normal
@@ -1354,8 +1356,9 @@ MBED_NOINLINE static int benchmark_ecdh_curve22519()
1354
1356
mbedtls_mpi_init (&z);
1355
1357
1356
1358
ret = mbedtls_snprintf (title, sizeof (title), " ECDHE-Curve25519" );
1357
- if (ret < 0 || static_cast <size_t >(ret) >= sizeof (title)) {
1358
- mbedtls_printf (" Failed to compose title string using "
1359
+ if (ret < 0 || static_cast <size_t >(ret) >= sizeof (title))
1360
+ {
1361
+ mbedtls_printf (" Failed to compose title string using "
1359
1362
" mbedtls_snprintf(): %d\n " , ret);
1360
1363
goto exit;
1361
1364
}
0 commit comments