printf( "[dumpsum] frompc 0x%x selfpc 0x%x count %d\n" ,
printf( "[dumpsum] frompc 0x%lx selfpc 0x%lx count %ld\n" ,
dumpsum(char *sumfile){    nltype *nlp;    arctype *arcp;    struct rawarc arc;    FILE *sfile;    if ( ( sfile = fopen ( sumfile , "w" ) ) == NULL )	err(1, "fopen: %s", sumfile);    /*     * dump the header; use the last header read in     */    if ( fwrite( &gmonhdr , sizeof gmonhdr , 1 , sfile ) != 1 )	err(1, "fwrite: %s", sumfile);    /*     * dump the samples     */    if (fwrite(samples, sizeof (UNIT), nsamples, sfile) != nsamples)	err(1, "fwrite: %s", sumfile);    /*     * dump the normalized raw arc information     */    for ( nlp = nl ; nlp < npe ; nlp++ ) {	for ( arcp = nlp -> children ; arcp ; arcp = arcp -> arc_childlist ) {	    arc.raw_frompc = arcp -> arc_parentp -> value;	    arc.raw_selfpc = arcp -> arc_childp -> value;	    arc.raw_count = arcp -> arc_count;	    if (fwrite ( &arc , sizeof arc , 1 , sfile ) != 1)	        err(1, "fwrite: %s", sumfile);#	    ifdef DEBUG		if ( debug & SAMPLEDEBUG ) {		    printf( "[dumpsum] frompc 0x%x selfpc 0x%x count %d\n" ,			    arc.raw_frompc , arc.raw_selfpc , arc.raw_count );		}#	    endif /* DEBUG */	}    }    fclose( sfile );}