2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 14 Feb 2005 15:47:19 +0000 (15:47 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 14 Feb 2005 15:47:19 +0000 (15:47 +0000)
* dis-buf.c (perror_memory): Use sprintf_vma to print out
address.

opcodes/ChangeLog
opcodes/dis-buf.c

index 983c47e48968736aed339c84fed0179cbe1ce8d9..8fe1b304e213ec16f44a64ffcf06ef64836cb582 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * dis-buf.c (perror_memory): Use sprintf_vma to print out
+       address.
+
 2005-02-11  Nick Clifton  <nickc@redhat.com>
 
        * iq2000-asm.c: Regenerate.
index 83fbfbd7d21e62aac239d1453a73bf816334dde9..257cfed14a6f86e4be3b1517e7dbce0c53d01f4c 100644 (file)
@@ -56,10 +56,15 @@ perror_memory (status, memaddr, info)
     /* Can't happen.  */
     info->fprintf_func (info->stream, _("Unknown error %d\n"), status);
   else
-    /* Actually, address between memaddr and memaddr + len was
-       out of bounds.  */
-    info->fprintf_func (info->stream,
-                       _("Address 0x%x is out of bounds.\n"), memaddr);
+    {
+      char buf[30];
+
+      /* Actually, address between memaddr and memaddr + len was
+        out of bounds.  */
+      sprintf_vma (buf, memaddr);
+      info->fprintf_func (info->stream,
+                         _("Address 0x%s is out of bounds.\n"), buf);
+    }
 }
 
 /* This could be in a separate file, to save miniscule amounts of space
This page took 0.04382 seconds and 4 git commands to generate.