diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-01-20 17:17:06 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-01-20 17:17:06 +0000 |
commit | 07770f0523e42368d8ffd6949fc42534a923e6dd (patch) | |
tree | 8e8f789aa2b6c6fab26c263d2898bbb4439c69c2 /test5.c | |
parent | db593e708b675fa728411252b61b7e7487f0521c (diff) |
test4.c, test5.c: Avoid format string errors
Rather than passing a variable string as a printf format string,
use "%s". This avoids a warning from compilers which check for
this common bug.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'test5.c')
-rw-r--r-- | test5.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ unsigned testseq; static inline void test_equal(const char *m, uint32_t expect, uint32_t actual) { - testEqI(expect, actual, m); + testEqI(expect, actual, "%s", m); } extern char _main_stack_top, _proc_stack_top; |