* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to

long and use %ld in printf format.
This commit is contained in:
Andreas Schwab 2003-02-04 14:31:04 +00:00
parent 0cca5f05a9
commit 22d822350a
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2003-02-04 Andreas Schwab <schwab@suse.de>
* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
long and use %ld in printf format.
2003-01-28 Richard Sandiford <rsandifo@redhat.com>
* readelf.c (dump_relocations): Reorder the r_info field for

View file

@ -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;
}