summaryrefslogtreecommitdiff
path: root/binutils/rddbg.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2003-02-04 14:31:04 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2003-02-04 14:31:04 +0000
commit093090117716700ef54fad8ab3f7be39f35a5ddc (patch)
tree92ccaf3fd1906b4cb549325c9b5f50ad828d8b72 /binutils/rddbg.c
parent9edccdd3107707300c17f03b8c041c83dddd594e (diff)
downloadbinutils-redhat-093090117716700ef54fad8ab3f7be39f35a5ddc.tar.gz
* rddbg.c (read_section_stabs_debugging_info): Cast ptrdiff_t to
long and use %ld in printf format.
Diffstat (limited to 'binutils/rddbg.c')
-rw-r--r--binutils/rddbg.c4
1 files changed, 2 insertions, 2 deletions
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;
}