diff options
author | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-07-30 04:34:58 +0000 |
commit | 0af1713e7cd57b52f6c81f73aa58934132198880 (patch) | |
tree | af4b52a6c5f3c8cd570e4f266f019cf552d6f442 /gprof/symtab.c | |
parent | 22ad7fee2a313665df38ad7177f962f7c13ad0b6 (diff) | |
download | gdb-0af1713e7cd57b52f6c81f73aa58934132198880.zip gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.gz gdb-0af1713e7cd57b52f6c81f73aa58934132198880.tar.bz2 |
Silence gcc printf warnings
Diffstat (limited to 'gprof/symtab.c')
-rw-r--r-- | gprof/symtab.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c index bdd1a9e..3436f1b 100644 --- a/gprof/symtab.c +++ b/gprof/symtab.c @@ -1,6 +1,7 @@ /* symtab.c - Copyright 1999, 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002, 2004, 2007, 2008 + Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -164,8 +165,9 @@ symtab_finalize (Sym_Table *tab) for (j = 0; j < tab->len; ++j) { printf ("[symtab_finalize] 0x%lx-0x%lx\t%s\n", - (long) tab->base[j].addr, (long) tab->base[j].end_addr, - tab->base[j].name); + (unsigned long) tab->base[j].addr, + (unsigned long) tab->base[j].end_addr, + tab->base[j].name); } ); } @@ -176,7 +178,7 @@ symtab_finalize (Sym_Table *tab) Sym * dbg_sym_lookup (Sym_Table *sym_tab, bfd_vma address) { - long low, mid, high; + unsigned long low, mid, high; Sym *sym; fprintf (stderr, "[dbg_sym_lookup] address 0x%lx\n", |