1
0
Fork 0
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:
hp.com!davidm 2003-09-25 05:29:14 +00:00
parent e4be4f9dc5
commit a99bac423b

View file

@ -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;
}