1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-08 02:18:11 +01:00

(_UPT_access_reg): Cast arguments to debug printf so they compile

without warning on both 32- and 64-bit platforms.

(Logical change 1.104)
This commit is contained in:
hp.com!davidm 2003-09-25 05:29:14 +00:00
parent a99bac423b
commit 2f3b37da51

View file

@ -42,7 +42,8 @@ _UPT_access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val,
#if DEBUG
if (write)
debug (100, "%s: %s <- %lx\n", __FUNCTION__, unw_regname (reg), *val);
debug (100, "%s: %s <- %lx\n",
__FUNCTION__, unw_regname (reg), (long) *val);
#endif
#if UNW_TARGET_IA64
@ -236,10 +237,13 @@ _UPT_access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val,
goto badreg;
#endif
#ifdef UNW_TARGET_IA64
out:
#endif
#if DEBUG
if (!write)
debug (100, "%s: %s -> %lx\n", __FUNCTION__, unw_regname (reg), *val);
debug (100, "%s: %s -> %lx\n",
__FUNCTION__, unw_regname (reg), (long) *val);
#endif
return 0;