Skip to content

Commit

Permalink
Correct ld in format strings in cmpd_dset.c (#3697)
Browse files Browse the repository at this point in the history
Removes clang warnings
  • Loading branch information
hyoklee authored Oct 18, 2023
1 parent 9557256 commit 5e31025
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/cmpd_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,10 @@ compare_a_b_c_data(void *exp1_buf, void *exp2_buf, void *rbuf)
if (s1_ptr->a != rbuf_ptr->a || s2_ptr->b != rbuf_ptr->b || s2_ptr->c != rbuf_ptr->c) {
H5_FAILED();
printf(" i=%d\n", i);
printf(" expect_buf:a=%ld, b=%ld, c=%ld\n", s1_ptr->a, s2_ptr->b, s2_ptr->c);
printf(" rbuf: a=%ld, b=%ld, c=%ld", rbuf_ptr->a, rbuf_ptr->b, rbuf_ptr->c);
printf(" expect_buf:a=%" PRId64 ", b=%" PRId64 ", c=%" PRId64 "\n", s1_ptr->a, s2_ptr->b,
s2_ptr->c);
printf(" rbuf: a=%" PRId64 ", b=%" PRId64 ", c=%" PRId64 "\n", rbuf_ptr->a, rbuf_ptr->b,
rbuf_ptr->c);
goto error;
}
} /* end for */
Expand Down

0 comments on commit 5e31025

Please sign in to comment.