mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-03-11 02:40:09 +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;
|
errno = 0;
|
||||||
if (write)
|
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
|
#ifdef HAVE_TTRACE
|
||||||
# warning No support for ttrace() yet.
|
# warning No support for ttrace() yet.
|
||||||
#else
|
#else
|
||||||
|
@ -53,7 +54,8 @@ _UPT_access_mem (unw_addr_space_t as, unw_word_t addr, unw_word_t *val,
|
||||||
if (errno)
|
if (errno)
|
||||||
return -UNW_EINVAL;
|
return -UNW_EINVAL;
|
||||||
#endif
|
#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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue