Sprinkle H5_ATTR_FORMAT over printf(3)-like functions in tools and fix issues (#1423)

* Correct some conversion specifications.

* Replace many "%lld" occurrences with "%" PRIuHSIZE except for a few
instances where PRIdHSIZE was appropriate.  Remove a couple of casts and
use correct format strings, instead.

* Copy values from a possibly unaligned buffer to aligned local variables
instead of casting and dereferencing pointers into the buffer.

* Committing clang-format changes

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
David Young
2022-02-21 15:31:57 -06:00
committed by GitHub
parent 705ba09e76
commit c302773438
13 changed files with 139 additions and 146 deletions

View File

@@ -39,11 +39,11 @@ print_dimensions(int rank, hsize_t *dims)
else {
parallel_print("[");
for (i = 0; i < rank - 1; i++) {
parallel_print(HSIZE_T_FORMAT, dims[i]);
parallel_print("%" PRIuHSIZE, dims[i]);
parallel_print("x");
}
parallel_print(HSIZE_T_FORMAT, dims[rank - 1]);
parallel_print("%" PRIuHSIZE, dims[rank - 1]);
parallel_print("]");
}
}