mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 12:52:53 +01:00
(_UPT_access_mem): Cast arguments to debug printf so that it
compiles without worning both on 64-bit and 32-bit platforms. (Logical change 1.104)
This commit is contained in:
parent
e4be4f9dc5
commit
a99bac423b
1 changed files with 4 additions and 2 deletions
|
@ -35,7 +35,8 @@ _UPT_access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val,
|
|||
errno = 0;
|
||||
if (write)
|
||||
{
|
||||
debug (100, "%s: mem[%lx] <- %lx\n", __FUNCTION__, addr, *val);
|
||||
debug (100, "%s: mem[%lx] <- %lx\n", __FUNCTION__,
|
||||
(long) addr, (long) *val);
|
||||
#ifdef HAVE_TTRACE
|
||||
# warning No support for ttrace() yet.
|
||||
#else
|
||||
|
@ -53,7 +54,8 @@ _UPT_access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val,
|
|||
if (errno)
|
||||
return -UNW_EINVAL;
|
||||
#endif
|
||||
debug (100, "%s: mem[%lx] -> %lx\n", __FUNCTION__, addr, *val);
|
||||
debug (100, "%s: mem[%lx] -> %lx\n", __FUNCTION__,
|
||||
(long) addr, (long) *val);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue