]> Git Repo - binutils.git/blobdiff - gprof/printgprof.c
keep ns32k stuff
[binutils.git] / gprof / printgprof.c
index a71767389e15a723b2e5eb31e71413a84af05136..f664bcab0b739c1b66154f66b8993c0b6c9c9729 100644 (file)
@@ -57,7 +57,7 @@ printprof()
        flatprofline( np );
     }
     actime = 0.0;
-    cfree( sortednlp );
+    free( sortednlp );
     if ( bflag && !bsd_style_output ) {
        flat_blurb(stdout);
     }
@@ -91,21 +91,19 @@ flatprofheader()
     if (bsd_style_output) {
        printf( "\ngranularity: each sample hit covers %d byte(s)" ,
               (long) scale * sizeof(UNIT) );
-       if ( totime > 0.0 ) {
-           printf( " for %.2f%% of %.2f seconds\n\n" ,
-                  100.0/totime , totime / hz );
-       } else {
-           printf( " no time accumulated\n\n" );
-           /*
-            *  this doesn't hurt since all the numerators will be zero.
-            */
-           totime = 1.0;
-       }
+       if (totime > 0.0)
+         printf(" for %.2f%% of %.2f seconds\n\n", 100.0/totime, totime / hz);
     }
     else {
        printf( "\nEach sample counts as %g seconds.\n",
               1.0 / hz);
     }
+    if (totime <= 0.0)
+      {
+       printf(" no time accumulated\n\n");
+       /* This doesn't hurt since all the numerators will be zero.  */
+       totime = 1.0;
+      }
     printf( "%5.5s %10.10s %8.8s %8.8s %8.8s %8.8s  %-8.8s\n" ,
            "%  " , "cumulative" , "self  " , "" , "self  " , "total " , "" );
     printf( "%5.5s %10.10s %8.8s %8.8s %8.8s %8.8s  %-8.8s\n" ,
@@ -244,7 +242,7 @@ printgprof(timesortnlp)
        if (bsd_style_output)
            printf( "\n" );
     }
-    cfree( timesortnlp );
+    free( timesortnlp );
     if ( bflag && !bsd_style_output) {
        fsf_callg_blurb(stdout);
     }
@@ -759,7 +757,7 @@ printindex()
        }
        printf( "\n" );
     }
-    cfree( namesortnlp );
+    free( namesortnlp );
 }
 
 PTR
This page took 0.0243 seconds and 4 git commands to generate.