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.
+2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * support/support_test_compare_string.c
+ (support_test_compare_string): Fix printf format.
+
2018-11-07 Florian Weimer <fweimer@redhat.com>
Implement TEST_COMPARE_STRING.
support_record_failure ();
printf ("%s:%d: error: blob comparison failed\n", file, line);
if (left_length == right_length && right != NULL && left != NULL)
- printf (" string length: %lu bytes\n", left_length);
+ printf (" string length: %zu bytes\n", left_length);
else
{
report_length ("left", left, left_length);