support: Fix printf format for TEST_COMPARE_STRING
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Nov 2018 13:09:02 +0000 (11:09 -0200)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 7 Nov 2018 13:11:06 +0000 (11:11 -0200)
commit00c86a37d1b63044e3169d1f2ebec23447c73f79
tree5b73905f73d584dc100c69846d2b7123a87cdaae
parent1df872fd74f730bcae3df201a229195445d2e18a
support: Fix printf format for TEST_COMPARE_STRING

Fix the following on 32 bits targets:

support_test_compare_string.c: In function ‘support_test_compare_string’:
support_test_compare_string.c:80:37: error: format ‘%lu’ expects argument of
type ‘long unsigned int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’}
[-Werror=format=]
         printf ("  string length: %lu bytes\n", left_length);
                                   ~~^           ~~~~~~~~~~~
                                   %u
Checked on arm-linux-gnueabihf.

* support/support_test_compare_string.c
(support_test_compare_string): Fix printf format.
ChangeLog
support/support_test_compare_string.c