summaryrefslogtreecommitdiff
path: root/usr.bin/gprof
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-17 14:51:24 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-17 14:51:24 +0000
commit7853817de3b18f087e76b07dca80d456fae09260 (patch)
tree6e25a8db4cdd43c76cc3e1576114d4f597486cdc /usr.bin/gprof
parentd16752d1aec0317f71ca58b1e741afabddb41a32 (diff)
downloadsrc-test2-7853817de3b18f087e76b07dca80d456fae09260.tar.gz
src-test2-7853817de3b18f087e76b07dca80d456fae09260.zip
More fixes for correct printf length modifiers usr.bin/gprof.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228629
Diffstat (limited to 'usr.bin/gprof')
-rw-r--r--usr.bin/gprof/aout.c2
-rw-r--r--usr.bin/gprof/arcs.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/gprof/aout.c b/usr.bin/gprof/aout.c
index 6af02d951c11..f64d67211398 100644
--- a/usr.bin/gprof/aout.c
+++ b/usr.bin/gprof/aout.c
@@ -134,7 +134,7 @@ getsymtab(FILE *nfile, const char *filename)
askfor = nname + 1;
nl = (nltype *) calloc( askfor , sizeof(nltype) );
if (nl == 0)
- errx( 1 , "no room for %d bytes of symbol table" ,
+ errx( 1 , "no room for %zu bytes of symbol table" ,
askfor * sizeof(nltype) );
/* pass2 - read symbols */
diff --git a/usr.bin/gprof/arcs.c b/usr.bin/gprof/arcs.c
index 3f0e34d13cfa..ad5cb56160cc 100644
--- a/usr.bin/gprof/arcs.c
+++ b/usr.bin/gprof/arcs.c
@@ -378,7 +378,7 @@ cyclelink()
*/
cyclenl = (nltype *) calloc( ncycle + 1 , sizeof( nltype ) );
if ( cyclenl == 0 )
- errx( 1 , "no room for %d bytes of cycle headers" ,
+ errx( 1 , "no room for %zu bytes of cycle headers" ,
( ncycle + 1 ) * sizeof( nltype ) );
/*
* now link cycles to true cycleheads,
@@ -481,7 +481,7 @@ cycleanalyze()
done = FALSE;
cyclestack = (arctype **) calloc( size + 1 , sizeof( arctype *) );
if ( cyclestack == 0 )
- errx( 1, "no room for %d bytes of cycle stack" ,
+ errx( 1, "no room for %zu bytes of cycle stack" ,
( size + 1 ) * sizeof( arctype * ) );
# ifdef DEBUG
if ( debug & BREAKCYCLE ) {
@@ -599,7 +599,7 @@ addcycle( stkstart , stkend )
clp = (cltype *)
calloc( 1 , sizeof ( cltype ) + ( size - 1 ) * sizeof( arctype * ) );
if ( clp == 0 ) {
- warnx( "no room for %d bytes of subcycle storage" ,
+ warnx( "no room for %zu bytes of subcycle storage" ,
sizeof ( cltype ) + ( size - 1 ) * sizeof( arctype * ) );
return( FALSE );
}