From 2f3b37da514dd5b19e133dd8db21860d8d8abf7b Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Thu, 25 Sep 2003 05:29:14 +0000 Subject: [PATCH] (_UPT_access_reg): Cast arguments to debug printf so they compile without warning on both 32- and 64-bit platforms. (Logical change 1.104) --- src/_UPT_access_reg.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/_UPT_access_reg.c b/src/_UPT_access_reg.c index 71859452..21cda732 100644 --- a/src/_UPT_access_reg.c +++ b/src/_UPT_access_reg.c @@ -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;