diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-02-27 07:03:00 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-02-27 07:03:00 +0000 |
commit | f33b308b864f12ec8fc5d7a10886e4105b3c51c1 (patch) | |
tree | b09bd1d5095ff26d6cd7b29b6c6c67e57758f796 /bfd/doc/chew.c | |
parent | d887b712dbeeec6bc3a95e8dc3ffba3397bdd443 (diff) | |
download | gdb-f33b308b864f12ec8fc5d7a10886e4105b3c51c1.tar.gz |
* chew.c (print_stack_level, main): Use %ld to print stack delta.
Diffstat (limited to 'bfd/doc/chew.c')
-rw-r--r-- | bfd/doc/chew.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c index 2276c8a6d59..f949e1f7ffc 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; } |