date and time created 83/02/24 12:55:54 by mckusick
[unix-history] / usr / src / usr.bin / gprof / lookup.c
index e4831d1..fd7ac44 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef lint
 #ifndef lint
-    static     char *sccsid = "@(#)lookup.c    1.1 (Berkeley) %G%";
+    static     char *sccsid = "@(#)lookup.c    1.3 (Berkeley) %G%";
 #endif lint
 
 #endif lint
 
-#include "dprof.h"
+#include "gprof.h"
 
     /*
      * look up an address in a sorted-by-address namelist
 
     /*
      * look up an address in a sorted-by-address namelist
@@ -28,7 +28,7 @@ nllookup( address )
        middle = ( high + low ) >> 1;
        if ( nl[ middle ].value <= address && nl[ middle+1 ].value > address ) {
 #          ifdef DEBUG
        middle = ( high + low ) >> 1;
        if ( nl[ middle ].value <= address && nl[ middle+1 ].value > address ) {
 #          ifdef DEBUG
-               if ( debug & TALLYDEBUG ) {
+               if ( debug & LOOKUPDEBUG ) {
                    printf( "[nllookup] %d (%d) probes\n" , probes , nname-1 );
                }
 #          endif DEBUG
                    printf( "[nllookup] %d (%d) probes\n" , probes , nname-1 );
                }
 #          endif DEBUG
@@ -56,14 +56,14 @@ arclookup( parentp , childp )
        return 0;
     }
 #   ifdef DEBUG
        return 0;
     }
 #   ifdef DEBUG
-       if ( debug & TALLYDEBUG ) {
+       if ( debug & LOOKUPDEBUG ) {
            printf( "[arclookup] parent %s child %s\n" ,
                    parentp -> name , childp -> name );
        }
 #   endif DEBUG
     for ( arcp = parentp -> children ; arcp ; arcp = arcp -> arc_childlist ) {
 #      ifdef DEBUG
            printf( "[arclookup] parent %s child %s\n" ,
                    parentp -> name , childp -> name );
        }
 #   endif DEBUG
     for ( arcp = parentp -> children ; arcp ; arcp = arcp -> arc_childlist ) {
 #      ifdef DEBUG
-           if ( debug & TALLYDEBUG ) {
+           if ( debug & LOOKUPDEBUG ) {
                printf( "[arclookup]\t arc_parent %s arc_child %s\n" ,
                        arcp -> arc_parentp -> name ,
                        arcp -> arc_childp -> name );
                printf( "[arclookup]\t arc_parent %s arc_child %s\n" ,
                        arcp -> arc_parentp -> name ,
                        arcp -> arc_childp -> name );