# HG changeset patch # User Paul Boddie # Date 1663361979 -7200 # Node ID 750d75411ead94fa556d9a315003f130b9996123 # Parent 61e336bc65e4c92b2251a1b24d5b59a8cc373a0d Fixed inappropriate format specifiers for strlen results. diff -r 61e336bc65e4 -r 750d75411ead tests/dstest_block_client.cc --- a/tests/dstest_block_client.cc Fri Sep 16 22:49:39 2022 +0200 +++ b/tests/dstest_block_client.cc Fri Sep 16 22:59:39 2022 +0200 @@ -71,7 +71,7 @@ printf("----\n%s\n----\n", outbuf); printf("[%lld zero bytes at start]\n", leading); - printf("[%d bytes shown]\n", strlen(outbuf)); + printf("[%zd bytes shown]\n", strlen(outbuf)); printf("[%lld bytes after string]\n", sample_remaining - leading - strlen(outbuf)); printf("[%lld zero bytes at end]\n", trailing); } diff -r 61e336bc65e4 -r 750d75411ead tests/dstest_file_client.cc --- a/tests/dstest_file_client.cc Fri Sep 16 22:49:39 2022 +0200 +++ b/tests/dstest_file_client.cc Fri Sep 16 22:59:39 2022 +0200 @@ -109,7 +109,7 @@ nread, size, total, *buffer, *(buffer + nread - 1)); if (!(*(buffer + nread - 1))) - printf("Warning: length before zero region is %lld\n", strlen(buffer)); + printf("Warning: length before zero region is %zd\n", strlen(buffer)); nread = client_read(file, buffer, size); }