diff --git a/tests/unittests/tests-uri_parser/tests-uri_parser.c b/tests/unittests/tests-uri_parser/tests-uri_parser.c index 5614dc44cb..4d1ce94e2c 100644 --- a/tests/unittests/tests-uri_parser/tests-uri_parser.c +++ b/tests/unittests/tests-uri_parser/tests-uri_parser.c @@ -57,9 +57,10 @@ static int _compare_string_buffer(const char *name, const char *input_uri, const (strncmp(actual_str, expected_str, actual_len) == 0)) { return 0; } - printf( - "\nWith given input uri '%s', expected %s '%s' with length '%" PRIuSIZE "' but got '%.*s' with length '%d'\n", - input_uri, name, expected_str, strlen(expected_str), actual_len, actual_str, actual_len); + printf("\nWith given input uri '%s', expected %s '%s' with length '%" + PRIuSIZE "' but got '%.*s' with length '%" PRIuSIZE "'\n", + input_uri, name, expected_str, strlen(expected_str), + (unsigned) actual_len, actual_str, actual_len); return -1; }