diff options
author | 2002-03-25 16:30:55 +0000 | |
---|---|---|
committer | 2002-03-25 16:30:55 +0000 | |
commit | e90a6b0269e020791ba656e001b5cf168cfea895 (patch) | |
tree | f22ee03d8b57da993b6ac44c353435acd3553399 | |
parent | dhartmei@ and I have been both running uaudio devices on macppc successfully (diff) | |
download | wireguard-openbsd-e90a6b0269e020791ba656e001b5cf168cfea895.tar.xz wireguard-openbsd-e90a6b0269e020791ba656e001b5cf168cfea895.zip |
change the extra text following preprocessor directives into comments.
patch from David Krause <openbsd@davidkrause.com>
ok millert@
-rw-r--r-- | usr.bin/gprof/arcs.c | 40 | ||||
-rw-r--r-- | usr.bin/gprof/dfn.c | 26 | ||||
-rw-r--r-- | usr.bin/gprof/gprof.c | 30 | ||||
-rw-r--r-- | usr.bin/gprof/i386.c | 12 | ||||
-rw-r--r-- | usr.bin/gprof/lookup.c | 16 | ||||
-rw-r--r-- | usr.bin/gprof/printgprof.c | 8 | ||||
-rw-r--r-- | usr.bin/gprof/tahoe.c | 14 | ||||
-rw-r--r-- | usr.bin/gprof/vax.c | 14 |
8 files changed, 80 insertions, 80 deletions
diff --git a/usr.bin/gprof/arcs.c b/usr.bin/gprof/arcs.c index 596f1075fd1..bc3ef5342c6 100644 --- a/usr.bin/gprof/arcs.c +++ b/usr.bin/gprof/arcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcs.c,v 1.5 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: arcs.c,v 1.6 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: arcs.c,v 1.6 1995/04/19 07:15:52 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)arcs.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: arcs.c,v 1.5 2001/11/19 19:02:14 mpech Exp $"; +static char rcsid[] = "$OpenBSD: arcs.c,v 1.6 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -67,7 +67,7 @@ addarc( parentp , childp , count ) printf( "[addarc] %d arcs from %s to %s\n" , count , parentp -> name , childp -> name ); } -# endif DEBUG +# endif /* DEBUG */ arcp = arclookup( parentp , childp ); if ( arcp != 0 ) { /* @@ -78,7 +78,7 @@ addarc( parentp , childp , count ) printf( "[tally] hit %d += %d\n" , arcp -> arc_count , count ); } -# endif DEBUG +# endif /* DEBUG */ arcp -> arc_count += count; return; } @@ -179,7 +179,7 @@ doarcs() if ( debug & BREAKCYCLE ) { printf("[doarcs] pass %d, cycle(s) %d\n" , pass , ncycle ); } -# endif DEBUG +# endif /* DEBUG */ if ( pass == 1 ) { printf( "\n\n%s %s\n%s %d:\n" , "The following arcs were deleted" , @@ -222,7 +222,7 @@ doarcs() printf( "\n" ); } } -# endif DEBUG +# endif /* DEBUG */ /* * starting from the topological top, * propagate print flags to children. @@ -352,7 +352,7 @@ timepropagate( parentp ) printname( parentp ); printf( "\n[dotime] share %f\n" , share ); } -# endif DEBUG +# endif /* DEBUG */ } } @@ -419,7 +419,7 @@ cyclelink() printname( nlp ); printf( " is the head of cycle %d\n" , cycle ); } -# endif DEBUG +# endif /* DEBUG */ /* * link members to cycle header */ @@ -495,7 +495,7 @@ cycleanalyze() printf( "[cycleanalyze] starting cycle %d of %d, size %d\n" , cycleno , ncycle , size ); } -# endif DEBUG +# endif /* DEBUG */ for ( nlp = cyclenl[ cycleno ] . cnext ; nlp ; nlp = nlp -> cnext ) { stkp = &cyclestack[0]; nlp -> flags |= CYCLEHEAD; @@ -523,7 +523,7 @@ cycleanalyze() printf("%s visited %d, viable %d, newcycle %d, oldcycle %d\n", "[doarcs]" , visited , viable , newcycle , oldcycle); } -# endif DEBUG +# endif /* DEBUG */ return (done); } @@ -539,14 +539,14 @@ descend( node , stkstart , stkp ) for ( arcp = node -> children ; arcp ; arcp = arcp -> arc_childlist ) { # ifdef DEBUG visited++; -# endif DEBUG +# endif /* DEBUG */ if ( arcp -> arc_childp -> cycleno != node -> cycleno || ( arcp -> arc_childp -> flags & VISITED ) || ( arcp -> arc_flags & DEADARC ) ) continue; # ifdef DEBUG viable++; -# endif DEBUG +# endif /* DEBUG */ *stkp = arcp; if ( arcp -> arc_childp -> flags & CYCLEHEAD ) { if ( addcycle( stkstart , stkp ) == FALSE ) @@ -599,7 +599,7 @@ addcycle( stkstart , stkend ) if ( arcpp == endlist ) { # ifdef DEBUG oldcycle++; -# endif DEBUG +# endif /* DEBUG */ return( TRUE ); } } @@ -631,7 +631,7 @@ addcycle( stkstart , stkend ) if ( debug & SUBCYCLELIST ) { printsubcycle( clp ); } -# endif DEBUG +# endif /* DEBUG */ cyclecnt++; if ( cyclecnt >= CYCLEMAX ) return( FALSE ); @@ -700,7 +700,7 @@ compresslist() maxarcp = maxexitarcp; # ifdef DEBUG type = "exit"; -# endif DEBUG +# endif /* DEBUG */ } else if ( maxwithparentcnt > 0 ) { /* * second choice is edge leading to node with at least one @@ -709,7 +709,7 @@ compresslist() maxarcp = maxwithparentarcp; # ifdef DEBUG type = "internal"; -# endif DEBUG +# endif /* DEBUG */ } else { /* * last choice is edge leading to node with only this arc as @@ -718,7 +718,7 @@ compresslist() maxarcp = maxnoparentarcp; # ifdef DEBUG type = "orphan"; -# endif DEBUG +# endif /* DEBUG */ } maxarcp -> arc_flags |= DEADARC; maxarcp -> arc_childp -> parentcnt -= 1; @@ -730,7 +730,7 @@ compresslist() maxarcp -> arc_parentp -> name, maxarcp -> arc_count, maxarcp -> arc_childp -> name, maxarcp -> arc_cyclecnt); } -# endif DEBUG +# endif /* DEBUG */ printf("\t%s to %s with %ld calls\n", maxarcp->arc_parentp -> name, maxarcp->arc_childp->name, maxarcp->arc_count); prev = &cyclehead; @@ -827,7 +827,7 @@ doflags() printf( " inherits printflag %d and propfraction %f\n" , childp -> printflag , childp -> propfraction ); } -# endif DEBUG +# endif /* DEBUG */ if ( ! childp -> printflag ) { /* * printflag is off @@ -883,7 +883,7 @@ doflags() printf( "time %f propself %f printtime %f\n" , childp -> time , childp -> propself , printtime ); } -# endif DEBUG +# endif /* DEBUG */ } } diff --git a/usr.bin/gprof/dfn.c b/usr.bin/gprof/dfn.c index 303145e396e..b05bf7b3446 100644 --- a/usr.bin/gprof/dfn.c +++ b/usr.bin/gprof/dfn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dfn.c,v 1.3 2001/03/22 05:18:30 mickey Exp $ */ +/* $OpenBSD: dfn.c,v 1.4 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: dfn.c,v 1.5 1995/04/19 07:15:56 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dfn.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: dfn.c,v 1.3 2001/03/22 05:18:30 mickey Exp $"; +static char rcsid[] = "$OpenBSD: dfn.c,v 1.4 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -80,7 +80,7 @@ dfn( parentp ) printname( parentp ); printf( ")\n" ); } -# endif DEBUG +# endif /* DEBUG */ /* * if we're already numbered, no need to look any furthur. */ @@ -132,7 +132,7 @@ dfn_pre_visit( parentp ) printname( parentp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ } /* @@ -191,7 +191,7 @@ dfn_findcycle( childp ) printname( cycleheadp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ if ( cycletop == dfn_depth ) { /* * this is previous function, e.g. this calls itself @@ -213,7 +213,7 @@ dfn_findcycle( childp ) printname( tailp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ } /* * if what we think is the top of the cycle @@ -228,7 +228,7 @@ dfn_findcycle( childp ) printname( cycleheadp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ } for ( index = cycletop + 1 ; index <= dfn_depth ; index += 1 ) { childp = dfn_stack[ index ].nlentryp; @@ -247,7 +247,7 @@ dfn_findcycle( childp ) printname( cycleheadp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ for ( tailp = childp ; tailp->cnext ; tailp = tailp->cnext ) { tailp -> cnext -> cyclehead = cycleheadp; # ifdef DEBUG @@ -258,7 +258,7 @@ dfn_findcycle( childp ) printname( cycleheadp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ } } else if ( childp -> cyclehead != cycleheadp /* firewall */ ) warnx("[dfn_busy] glommed, but not to cyclehead"); @@ -284,7 +284,7 @@ dfn_self_cycle( parentp ) printname( parentp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ } /* @@ -304,7 +304,7 @@ dfn_post_visit( parentp ) printname( parentp ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ /* * number functions and things in their cycles * unless the function is itself part of a cycle @@ -319,14 +319,14 @@ dfn_post_visit( parentp ) printname( memberp ); printf( " -> toporder = %d\n" , dfn_counter ); } -# endif DEBUG +# endif /* DEBUG */ } } else { # ifdef DEBUG if ( debug & DFNDEBUG ) { printf( "[dfn_post_visit]\t\tis part of a cycle\n" ); } -# endif DEBUG +# endif /* DEBUG */ } dfn_depth -= 1; } diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c index 70245ce47f7..13d5092b6fa 100644 --- a/usr.bin/gprof/gprof.c +++ b/usr.bin/gprof/gprof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gprof.c,v 1.9 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: gprof.c,v 1.10 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: gprof.c,v 1.8 1995/04/19 07:15:59 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: gprof.c,v 1.9 2001/11/19 19:02:14 mpech Exp $"; +static char rcsid[] = "$OpenBSD: gprof.c,v 1.10 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -98,9 +98,9 @@ main(argc, argv) debug |= ANYDEBUG; # ifdef DEBUG printf("[main] debug = %d\n", debug); -# else not DEBUG +# else /* not DEBUG */ warnx("-d ignored"); -# endif DEBUG +# endif /* DEBUG */ break; case 'E': ++argv; @@ -240,7 +240,7 @@ getnfile() printf("[getnfile] 0X%08x\t%s\n", nl[j].value, nl[j].name); } } -# endif DEBUG +# endif /* DEBUG */ } void @@ -299,7 +299,7 @@ getsymtab(nfile) printf( "[getsymtab] rejecting: 0x%x %s\n" , nbuf.n_type , strtab + nbuf.n_un.n_strx ); } -# endif DEBUG +# endif /* DEBUG */ continue; } npe->value = nbuf.n_value; @@ -309,7 +309,7 @@ getsymtab(nfile) printf( "[getsymtab] %d %s 0x%08x\n" , nname , npe -> name , npe -> value ); } -# endif DEBUG +# endif /* DEBUG */ npe++; nname++; } @@ -365,7 +365,7 @@ getpfile(filename) printf( "[getpfile] frompc 0x%x selfpc 0x%x count %d\n" , arc.raw_frompc , arc.raw_selfpc , arc.raw_count ); } -# endif DEBUG +# endif /* DEBUG */ /* * add this arc */ @@ -422,7 +422,7 @@ openpfile(filename) sampbytes , nsamples ); printf( "[openpfile] sample rate %d\n" , hz ); } -# endif DEBUG +# endif /* DEBUG */ return(pfile); } @@ -448,7 +448,7 @@ tally( rawp ) printf( "[tally] arc from %s to %s traversed %d times\n" , parentp -> name , childp -> name , rawp -> raw_count ); } -# endif DEBUG +# endif /* DEBUG */ addarc( parentp , childp , rawp -> raw_count ); } @@ -491,7 +491,7 @@ dumpsum( sumfile ) printf( "[dumpsum] frompc 0x%x selfpc 0x%x count %d\n" , arc.raw_frompc , arc.raw_selfpc , arc.raw_count ); } -# endif DEBUG +# endif /* DEBUG */ } } fclose( sfile ); @@ -591,7 +591,7 @@ asgnsamples() printf( "[asgnsamples] pcl 0x%x pch 0x%x ccnt %d\n" , pcl , pch , ccnt ); } -# endif DEBUG +# endif /* DEBUG */ totime += time; for (j = j - 1; j < nname; j++) { svalue0 = nl[j].svalue; @@ -617,7 +617,7 @@ asgnsamples() nl[j].name, overlap * time / scale, overlap); } -# endif DEBUG +# endif /* DEBUG */ nl[j].time += overlap * time / scale; } } @@ -626,7 +626,7 @@ asgnsamples() if (debug & SAMPLEDEBUG) { printf("[asgnsamples] totime %f\n", totime); } -# endif DEBUG +# endif /* DEBUG */ } @@ -671,7 +671,7 @@ alignentries() printf("[alignentries] pushing svalue 0x%x to 0x%x\n", nlp->svalue, nlp->svalue + UNITS_TO_CODE); } -# endif DEBUG +# endif /* DEBUG */ nlp->svalue += UNITS_TO_CODE; } } diff --git a/usr.bin/gprof/i386.c b/usr.bin/gprof/i386.c index 83957460685..b1670088b60 100644 --- a/usr.bin/gprof/i386.c +++ b/usr.bin/gprof/i386.c @@ -1,8 +1,8 @@ -/* $OpenBSD: i386.c,v 1.4 2001/03/22 05:18:30 mickey Exp $ */ +/* $OpenBSD: i386.c,v 1.5 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: i386.c,v 1.5 1995/04/19 07:16:04 cgd Exp $ */ #ifndef lint -static char rcsid[] = "$OpenBSD: i386.c,v 1.4 2001/03/22 05:18:30 mickey Exp $"; +static char rcsid[] = "$OpenBSD: i386.c,v 1.5 2002/03/25 16:30:55 danh Exp $"; #endif /* not lint */ #include "gprof.h" @@ -34,7 +34,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "[findcall] %s: 0x%x to 0x%x\n" , parentp -> name , p_lowpc , p_highpc ); } -# endif DEBUG +# endif /* DEBUG */ for (pc = textspace + p_lowpc - N_TXTADDR(xbuf) ; pc < textspace + p_highpc - N_TXTADDR(xbuf) ; pc += len) { len = 1; if (iscall(pc)) { @@ -44,7 +44,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "[findcall]\t0x%x:calls" , pc - textspace ); printf( "\tdestpc 0x%x" , destpc ); } -# endif DEBUG +# endif /* DEBUG */ if (destpc >= s_lowpc && destpc <= s_highpc) { childp = nllookup(destpc); # ifdef DEBUG @@ -53,7 +53,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( " childp->value 0x%x\n" , childp -> value ); } -# endif DEBUG +# endif /* DEBUG */ if (childp != NULL && childp->value == destpc) { addarc(parentp, childp, 0L); len += 4; @@ -64,7 +64,7 @@ findcall( parentp , p_lowpc , p_highpc ) if ( debug & CALLDEBUG ) { printf( "\tbut it's a botch\n" ); } -# endif DEBUG +# endif /* DEBUG */ } } } diff --git a/usr.bin/gprof/lookup.c b/usr.bin/gprof/lookup.c index 643cbb0545b..62400baedb3 100644 --- a/usr.bin/gprof/lookup.c +++ b/usr.bin/gprof/lookup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lookup.c,v 1.4 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: lookup.c,v 1.5 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: lookup.c,v 1.5 1995/04/19 07:16:06 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)lookup.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: lookup.c,v 1.4 2001/11/19 19:02:14 mpech Exp $"; +static char rcsid[] = "$OpenBSD: lookup.c,v 1.5 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -60,18 +60,18 @@ nllookup( address ) int probes; probes = 0; -# endif DEBUG +# endif /* DEBUG */ for ( low = 0 , high = nname - 1 ; low != high ; ) { # ifdef DEBUG probes += 1; -# endif DEBUG +# endif /* DEBUG */ middle = ( high + low ) >> 1; if ( nl[ middle ].value <= address && nl[ middle+1 ].value > address ) { # ifdef DEBUG if ( debug & LOOKUPDEBUG ) { printf( "[nllookup] %d (%d) probes\n" , probes , nname-1 ); } -# endif DEBUG +# endif /* DEBUG */ return &nl[ middle ]; } if ( nl[ middle ].value > address ) { @@ -83,7 +83,7 @@ nllookup( address ) # ifdef DEBUG if ( debug & LOOKUPDEBUG ) warnx("[nllookup] (%d) binary search fails", nname - 1); -# endif DEBUG +# endif /* DEBUG */ return 0; } @@ -103,7 +103,7 @@ arclookup( parentp , childp ) printf( "[arclookup] parent %s child %s\n" , parentp -> name , childp -> name ); } -# endif DEBUG +# endif /* DEBUG */ for ( arcp = parentp -> children ; arcp ; arcp = arcp -> arc_childlist ) { # ifdef DEBUG if ( debug & LOOKUPDEBUG ) { @@ -111,7 +111,7 @@ arclookup( parentp , childp ) arcp -> arc_parentp -> name , arcp -> arc_childp -> name ); } -# endif DEBUG +# endif /* DEBUG */ if ( arcp -> arc_childp == childp ) { return arcp; } diff --git a/usr.bin/gprof/printgprof.c b/usr.bin/gprof/printgprof.c index 1e83faf4b1a..2c98f31bc3d 100644 --- a/usr.bin/gprof/printgprof.c +++ b/usr.bin/gprof/printgprof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printgprof.c,v 1.5 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: printgprof.c,v 1.6 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: printgprof.c,v 1.5 1995/04/19 07:16:21 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)printgprof.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: printgprof.c,v 1.5 2001/11/19 19:02:14 mpech Exp $"; +static char rcsid[] = "$OpenBSD: printgprof.c,v 1.6 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -371,7 +371,7 @@ printname( selfp ) if ( debug & PROPDEBUG ) { printf( "%5.2f%% " , selfp -> propfraction ); } -# endif DEBUG +# endif /* DEBUG */ } if ( selfp -> cycleno != 0 ) { printf( " <cycle %d>" , selfp -> cycleno ); @@ -601,7 +601,7 @@ arccmp( thisp , thatp ) thatp -> arc_count , thatchildp -> ncall ); printf( "\n" ); } -# endif DEBUG +# endif /* DEBUG */ if ( thisparentp == thischildp ) { /* this is a self call */ return LESSTHAN; diff --git a/usr.bin/gprof/tahoe.c b/usr.bin/gprof/tahoe.c index 246e08976f5..4484b5ec82b 100644 --- a/usr.bin/gprof/tahoe.c +++ b/usr.bin/gprof/tahoe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tahoe.c,v 1.3 2001/03/22 05:18:30 mickey Exp $ */ +/* $OpenBSD: tahoe.c,v 1.4 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: tahoe.c,v 1.5 1995/04/19 07:16:27 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)tahoe.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: tahoe.c,v 1.3 2001/03/22 05:18:30 mickey Exp $"; +static char rcsid[] = "$OpenBSD: tahoe.c,v 1.4 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -253,7 +253,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "[findcall] %s: 0x%x to 0x%x\n" , parentp -> name , p_lowpc , p_highpc ); } -# endif DEBUG +# endif /* DEBUG */ for ( instructp = textspace + p_lowpc ; instructp < textspace + p_highpc ; instructp += length ) { @@ -267,7 +267,7 @@ findcall( parentp , p_lowpc , p_highpc ) if ( debug & CALLDEBUG ) { printf( "[findcall]\t0x%x:callf" , instructp - textspace ); } -# endif DEBUG +# endif /* DEBUG */ firstmode = operandmode( instructp+length ); switch ( firstmode ) { case literal: @@ -283,7 +283,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "\tfirst operand is %s", operandname( firstmode ) ); printf( "\tsecond operand is %s\n" , operandname( mode ) ); } -# endif DEBUG +# endif /* DEBUG */ switch ( mode ) { case regdef: case bytedispdef: @@ -322,7 +322,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( " childp->value 0x%x\n" , childp -> value ); } -# endif DEBUG +# endif /* DEBUG */ if ( childp -> value == destpc ) { /* * a hit @@ -348,7 +348,7 @@ findcall( parentp , p_lowpc , p_highpc ) if ( debug & CALLDEBUG ) { printf( "[findcall]\tbut it's a botch\n" ); } -# endif DEBUG +# endif /* DEBUG */ length = 1; continue; } diff --git a/usr.bin/gprof/vax.c b/usr.bin/gprof/vax.c index 4071a697d9c..b6676b216d0 100644 --- a/usr.bin/gprof/vax.c +++ b/usr.bin/gprof/vax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vax.c,v 1.4 2001/03/22 05:18:31 mickey Exp $ */ +/* $OpenBSD: vax.c,v 1.5 2002/03/25 16:30:55 danh Exp $ */ /* $NetBSD: vax.c,v 1.6 1996/04/20 14:56:37 ragge Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)vax.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: vax.c,v 1.4 2001/03/22 05:18:31 mickey Exp $"; +static char rcsid[] = "$OpenBSD: vax.c,v 1.5 2002/03/25 16:30:55 danh Exp $"; #endif #endif /* not lint */ @@ -252,7 +252,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "[findcall] %s: 0x%x to 0x%x\n" , parentp -> name , p_lowpc , p_highpc ); } -# endif DEBUG +# endif /* DEBUG */ for ( instructp = textspace + p_lowpc ; instructp < textspace + p_highpc ; instructp += length ) { @@ -266,7 +266,7 @@ findcall( parentp , p_lowpc , p_highpc ) if ( debug & CALLDEBUG ) { printf( "[findcall]\t0x%x:calls" , instructp - textspace ); } -# endif DEBUG +# endif /* DEBUG */ firstmode = operandmode( (struct modebyte *) (instructp+length) ); switch ( firstmode ) { case literal: @@ -282,7 +282,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( "\tfirst operand is %s", operandname( firstmode ) ); printf( "\tsecond operand is %s\n" , operandname( mode ) ); } -# endif DEBUG +# endif /* DEBUG */ switch ( mode ) { case regdef: case bytedispdef: @@ -322,7 +322,7 @@ findcall( parentp , p_lowpc , p_highpc ) printf( " childp->value 0x%x\n" , childp -> value ); } -# endif DEBUG +# endif /* DEBUG */ if ( childp -> value == destpc ) { /* * a hit @@ -349,7 +349,7 @@ findcall( parentp , p_lowpc , p_highpc ) if ( debug & CALLDEBUG ) { printf( "[findcall]\tbut it's a botch\n" ); } -# endif DEBUG +# endif /* DEBUG */ length = 1; continue; } |