date and time created 83/02/24 12:56:06 by mckusick
[unix-history] / usr / src / usr.bin / gprof / printgprof.c
index d231855..1604ae4 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-    static     char *sccsid = "@(#)printgprof.c        1.12 (Berkeley) %G%";
+    static     char *sccsid = "@(#)printgprof.c        1.13 (Berkeley) %G%";
 #endif lint
 
 #include "gprof.h"
 #endif lint
 
 #include "gprof.h"
@@ -68,7 +68,7 @@ flatprofheader()
 {
     
     if ( bflag ) {
 {
     
     if ( bflag ) {
-       printblurb( "flat.blurb" );
+       printblurb( FLAT_BLURB );
     }
     printf( "%5.5s %7.7s %7.7s %7.7s %-8.8s\n" ,
            "%time" , "cumsecs" , "seconds" , "calls" , "name" );
     }
     printf( "%5.5s %7.7s %7.7s %7.7s %-8.8s\n" ,
            "%time" , "cumsecs" , "seconds" , "calls" , "name" );
@@ -96,7 +96,7 @@ gprofheader()
 {
 
     if ( bflag ) {
 {
 
     if ( bflag ) {
-       printblurb( "callg.blurb" );
+       printblurb( CALLG_BLURB );
     }
     printf( "\ngranularity: each sample hit covers %d byte(s)" ,
            (long) scale * sizeof(UNIT) );
     }
     printf( "\ngranularity: each sample hit covers %d byte(s)" ,
            (long) scale * sizeof(UNIT) );
@@ -626,14 +626,12 @@ arccmp( thisp , thatp )
 printblurb( blurbname )
     char       *blurbname;
 {
 printblurb( blurbname )
     char       *blurbname;
 {
-    char       pathname[ BUFSIZ ];
     FILE       *blurbfile;
     int                input;
 
     FILE       *blurbfile;
     int                input;
 
-    sprintf( pathname , "%s%s" , BLURBLIB , blurbname );
-    blurbfile = fopen( pathname , "r" );
+    blurbfile = fopen( blurbname , "r" );
     if ( blurbfile == NULL ) {
     if ( blurbfile == NULL ) {
-       perror( pathname );
+       perror( blurbname );
        return;
     }
     while ( ( input = getc( blurbfile ) ) != EOF ) {
        return;
     }
     while ( ( input = getc( blurbfile ) ) != EOF ) {