mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-07-02 13:41:46 +02: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:
parent
a99bac423b
commit
2f3b37da51
|
@ -42,7 +42,8 @@ _UPT_access_reg (unw_addr_space_t as, unw_regnum_t reg, unw_word_t *val,
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (write)
|
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
|
#endif
|
||||||
|
|
||||||
#if UNW_TARGET_IA64
|
#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;
|
goto badreg;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNW_TARGET_IA64
|
||||||
out:
|
out:
|
||||||
|
#endif
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (!write)
|
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
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue