aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-02-27 07:03:00 +0000
committerAlan Modra <amodra@gmail.com>2012-02-27 07:03:00 +0000
commit709bcda1f4cadba77857bb163156ffc170222b77 (patch)
treeff37f09b63f700b36c76f225b63af9d74c23badc
parenta597d2d3d2bb862725ed50780cc308d652981aaf (diff)
downloadgdb-709bcda1f4cadba77857bb163156ffc170222b77.zip
gdb-709bcda1f4cadba77857bb163156ffc170222b77.tar.gz
gdb-709bcda1f4cadba77857bb163156ffc170222b77.tar.bz2
* chew.c (print_stack_level, main): Use %ld to print stack delta.
-rw-r--r--bfd/doc/ChangeLog4
-rw-r--r--bfd/doc/chew.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/bfd/doc/ChangeLog b/bfd/doc/ChangeLog
index 87e2a2e..37a7e38 100644
--- a/bfd/doc/ChangeLog
+++ b/bfd/doc/ChangeLog
@@ -1,3 +1,7 @@
+2012-02-27 Alan Modra <amodra@gmail.com>
+
+ * chew.c (print_stack_level, main): Use %ld to print stack delta.
+
2010-10-28 Matthias Klose <doko@ubuntu.com>
* bfd.texinfo: Add directory section for info document.
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 2276c8a..f949e1f 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -1,6 +1,6 @@
/* chew
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000, 2001,
- 2002, 2003, 2005, 2007, 2009
+ 2002, 2003, 2005, 2007, 2009, 2012
Free Software Foundation, Inc.
Contributed by steve chamberlain @cygnus
@@ -476,8 +476,8 @@ remove_noncomments (src, dst)
static void
print_stack_level ()
{
- fprintf (stderr, "current string stack depth = %d, ", tos - stack);
- fprintf (stderr, "current integer stack depth = %d\n", isp - istack);
+ fprintf (stderr, "current string stack depth = %ld, ", tos - stack);
+ fprintf (stderr, "current integer stack depth = %ld\n", isp - istack);
pc++;
}
@@ -1563,7 +1563,7 @@ main (ac, av)
write_buffer (stack + 0, stdout);
if (tos != stack)
{
- fprintf (stderr, "finishing with current stack level %d\n",
+ fprintf (stderr, "finishing with current stack level %ld\n",
tos - stack);
return 1;
}