diff options
Diffstat (limited to 'xc/lib/GL/highpc.c')
-rw-r--r-- | xc/lib/GL/highpc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xc/lib/GL/highpc.c b/xc/lib/GL/highpc.c index c9218d02a..fb9682ebb 100644 --- a/xc/lib/GL/highpc.c +++ b/xc/lib/GL/highpc.c @@ -1,3 +1,5 @@ +/* $XFree86: xc/lib/GL/highpc.c,v 1.3 2000/09/26 15:56:45 tsi Exp $ */ + #include <stdio.h> #include <stdlib.h> @@ -32,16 +34,17 @@ glx_init_prof( void ) fprintf(stderr, "\n\n\nIn glx_init_prof\n\n\n"); if (!s) return; + if (profile) return; profile = 1; monstartup( (char *)glx_lowpc, (char *)glx_highpc ); - fprintf(stderr, "Starting profiling, %x %x\n", - (unsigned int)glx_lowpc, - (unsigned int)glx_highpc); + fprintf(stderr, "Starting profiling, %lx %lx\n", + (unsigned long)glx_lowpc, + (unsigned long)glx_highpc); if ((fp = fopen( "glx_lowpc", "w" )) != NULL) { - fprintf( fp, "0x%08x ", (unsigned int)glx_lowpc ); + fprintf( fp, "0x%08lx ", (unsigned long)glx_lowpc ); fclose( fp ); } } |