From: H.J. Lu Date: Mon, 14 Feb 2005 15:47:19 +0000 (+0000) Subject: 2005-02-14 H.J. Lu X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d60988980f0a8282b0125afe9dbad1ddfdda4c9e;p=deliverable%2Fbinutils-gdb.git 2005-02-14 H.J. Lu * dis-buf.c (perror_memory): Use sprintf_vma to print out address. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 983c47e489..8fe1b304e2 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2005-02-14 H.J. Lu + + * dis-buf.c (perror_memory): Use sprintf_vma to print out + address. + 2005-02-11 Nick Clifton * iq2000-asm.c: Regenerate. diff --git a/opcodes/dis-buf.c b/opcodes/dis-buf.c index 83fbfbd7d2..257cfed14a 100644 --- a/opcodes/dis-buf.c +++ b/opcodes/dis-buf.c @@ -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