Skip to content
Permalink
Browse files

tests: benchmarks: mbedtls: Fix printf args

As printf() is now used directly instead of printf proxy function,
there's warning-as-error that long long is passed where %lu
expected, so cast it explicitly.

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
  • Loading branch information...
pfalcon authored and nashif committed May 23, 2019
1 parent bf07071 commit 563b89f90b8c1fee779b6043c5fc042567dcfbab
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/benchmarks/mbedtls/src/benchmark.c
@@ -178,7 +178,7 @@ do { \
\
mbedtls_printf("%9lu KiB/s, %9lu ns/byte\n", \
ii * BUFSIZE / 1024, \
delta / (jj * BUFSIZE)); \
(unsigned long)(delta / (jj * BUFSIZE))); \
} while (0)

#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C) && defined(MBEDTLS_MEMORY_DEBUG)

0 comments on commit 563b89f

Please sign in to comment.
You can’t perform that action at this time.