From a99bac423be87284c9f1e72538eabc363cc2fd9b Mon Sep 17 00:00:00 2001
From: "hp.com!davidm" <hp.com!davidm>
Date: Thu, 25 Sep 2003 05:29:14 +0000
Subject: [PATCH] (_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)
---
 src/_UPT_access_mem.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/_UPT_access_mem.c b/src/_UPT_access_mem.c
index e2bdec15..86faf581 100644
--- a/src/_UPT_access_mem.c
+++ b/src/_UPT_access_mem.c
@@ -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;
 }