From 093090117716700ef54fad8ab3f7be39f35a5ddc Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 4 Feb 2003 14:31:04 +0000 Subject: * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to long and use %ld in printf format. --- binutils/ChangeLog | 5 +++++ binutils/rddbg.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index eebf029fe3..d822fc9211 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2003-02-04 Andreas Schwab + + * rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to + long and use %ld in printf format. + 2003-01-28 Richard Sandiford * readelf.c (dump_relocations): Reorder the r_info field for diff --git a/binutils/rddbg.c b/binutils/rddbg.c index 2e0fd67ecc..2f6ec6e3ea 100644 --- a/binutils/rddbg.c +++ b/binutils/rddbg.c @@ -193,9 +193,9 @@ read_section_stabs_debugging_info (abfd, syms, symcount, dhandle, pfound) if (stroff + strx > strsize) { - fprintf (stderr, "%s: %s: stab entry %d is corrupt, strx = 0x%x, type = %d\n", + fprintf (stderr, "%s: %s: stab entry %ld is corrupt, strx = 0x%x, type = %d\n", bfd_get_filename (abfd), names[i].secname, - (stab - stabs) / 12, strx, type); + (long) (stab - stabs) / 12, strx, type); continue; } -- cgit v1.2.1