diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c index 297d21e60f45..45c93747abb5 100644 --- a/sal/osl/unx/diagnose.c +++ b/sal/osl/unx/diagnose.c @@ -2,9 +2,9 @@ * * $RCSfile: diagnose.c,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mfe $ $Date: 2001-02-26 16:17:50 $ + * last change: $Author: mfe $ $Date: 2001-02-28 09:54:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,18 +84,26 @@ void SAL_CALL osl_breakDebug() exit(0); } +#define OSL_PROFILING + void SAL_CALL osl_trace(const sal_Char* lpszFormat, ...) { va_list args; va_start(args, lpszFormat); +#if defined(OSL_PROFILING) + fprintf(stderr, "time : %06lu : ", osl_getGlobalTimer() ); +#else fprintf(stderr,"Trace Message : "); +#endif vfprintf(stderr,lpszFormat, args); fprintf(stderr,"\n"); + fflush(stderr); + va_end(args); }