diff options
author | Andreas Schwab <schwab@suse.de> | 2015-03-19 16:10:16 +0100 |
---|---|---|
committer | Arun Sharma <arun@sharma-home.net> | 2015-03-22 00:05:14 -0700 |
commit | 544cdb3b43b297a3ee09b8b85be485533f0304ab (patch) | |
tree | 5cfcc70ec84ba87cd3a31ace3303b469d5f20c27 /tests | |
parent | 0bed10aa217157b287e036fba1e48ad2c6a3356e (diff) | |
download | libunwind-544cdb3b43b297a3ee09b8b85be485533f0304ab.tar.gz |
tests/Gtest-trace.c: show differing addresses
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Gtest-trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c index dcd467b4..194379a0 100644 --- a/tests/Gtest-trace.c +++ b/tests/Gtest-trace.c @@ -123,7 +123,7 @@ do_backtrace (void) if (labs((unw_word_t) addresses[1][i] - (unw_word_t) addresses[2][i]) > 1) { printf ("FAILURE: backtrace() and unw_backtrace() addresses differ at %d: %p vs. %p\n", - i, addresses[1][n], addresses[2][n]); + i, addresses[1][i], addresses[2][i]); ++num_errors; } @@ -133,7 +133,7 @@ do_backtrace (void) if (labs((unw_word_t) addresses[0][i] - (unw_word_t) addresses[1][i]) > 1) { printf ("FAILURE: unw_step() loop and backtrace() addresses differ at %d: %p vs. %p\n", - i, addresses[0][n], addresses[1][n]); + i, addresses[0][i], addresses[1][i]); ++num_errors; } } |