summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/aout.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-02-21 12:07:21 +0000
committerbde <bde@FreeBSD.org>2002-02-21 12:07:21 +0000
commit410e57d607b880921d54f9943b712bc5cca607cd (patch)
tree68ae29f63b9ab11211c7414b3e89eb46039d0f09 /usr.bin/gprof/aout.c
parent2587888af49c047c8ce3a68fcafb15d8cdf5c126 (diff)
downloadFreeBSD-src-410e57d607b880921d54f9943b712bc5cca607cd.zip
FreeBSD-src-410e57d607b880921d54f9943b712bc5cca607cd.tar.gz
Fixed printf format errors. In printgprof.c, also convert the scale
without possibly losing lots of precision, and print the scale using %g instead of %d in case it is non-integral. %g might not be the best format for this.
Diffstat (limited to 'usr.bin/gprof/aout.c')
-rw-r--r--usr.bin/gprof/aout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/gprof/aout.c b/usr.bin/gprof/aout.c
index c0d17b9..4dda4c5 100644
--- a/usr.bin/gprof/aout.c
+++ b/usr.bin/gprof/aout.c
@@ -89,7 +89,7 @@ aout_getnfile(const char *filename, char ***defaultEs)
register int j;
for (j = 0; j < nname; j++){
- printf("[getnfile] 0X%08x\t%s\n", nl[j].value, nl[j].name);
+ printf("[getnfile] 0X%08lx\t%s\n", nl[j].value, nl[j].name);
}
}
# endif DEBUG
@@ -167,7 +167,7 @@ getsymtab(FILE *nfile, const char *filename)
npe->name = strtab+nbuf.n_un.n_strx;
# ifdef DEBUG
if ( debug & AOUTDEBUG ) {
- printf( "[getsymtab] %d %s 0x%08x\n" ,
+ printf( "[getsymtab] %d %s 0x%08lx\n" ,
nname , npe -> name , npe -> value );
}
# endif DEBUG
OpenPOWER on IntegriCloud