Skip to content

Commit

Permalink
[bigendian] Add more debugging print out
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed Sep 25, 2023
1 parent 83d0d69 commit fc30e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/constraint.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ static void capture_parameter(Constraint *constraint, const char *function, Cgre
fprintf(stderr, "DEBUG: sizeof(intptr_t) = %ld\n", sizeof(intptr_t));
fprintf(stderr, "DEBUG: &actual.value = %p\n", &actual.value);
fprintf(stderr, "DEBUG: actual.value.integer_value = 0x%lx\n", actual.value.integer_value);
fprintf(stderr, "DEBUG: actual.value.pointer_value = %p\n", actual.value.pointer_value);
fprintf(stderr, "DEBUG: actual.value.string_value = 0x%p\n", actual.value.string_value);
fprintf(stderr, "DEBUG: size_of_expected_value = %ld\n", constraint->size_of_expected_value);
memmove(constraint->expected_value.value.pointer_value, start_address, constraint->size_of_expected_value);

Expand Down
2 changes: 2 additions & 0 deletions tests/mocks_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ Ensure(Mocks, can_capture_parameter) {
int captured_first = 0;
int captured_second = 0;

fprintf(stderr, "DEBUG: address to captured_first = %p\n", &captured_first);

expect(simple_mocked_function,
will_capture_parameter(first, captured_first),
will_capture_parameter(second, captured_second));
Expand Down

0 comments on commit fc30e9a

Please sign in to comment.