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:
@@ -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("]");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user