summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2007-11-22 11:21:18 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2007-11-22 11:21:18 +0000
commitd90fc5c4fbc65154dea18b945a6a3bb4d7ef4c2c (patch)
treed8e01ccd7633e10e7fac88a2936766c3c1d6d3b7 /sal/rtl
parentb10d7a7aa58fd6865a359c7640203c0dc66f48f7 (diff)
INTEGRATION: CWS sb81 (1.11.174); FILE MERGED
2007/11/02 17:00:26 sb 1.11.174.1: #i83203# SAL_PRI... stuff for portable printf-style conversion specifications.
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/source/logfile.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sal/rtl/source/logfile.cxx b/sal/rtl/source/logfile.cxx
index 1cfa30020..7f26a9045 100644
--- a/sal/rtl/source/logfile.cxx
+++ b/sal/rtl/source/logfile.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: logfile.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 09:05:04 $
+ * last change: $Author: ihi $ $Date: 2007-11-22 12:21:18 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -96,7 +96,7 @@ LoggerGuard::~LoggerGuard()
if( g_buffer )
{
sal_Int64 nWritten, nConverted =
- sprintf( g_buffer, "closing log file at %06lu", osl_getGlobalTimer() );
+ sprintf( g_buffer, "closing log file at %06" SAL_PRIuUINT32, osl_getGlobalTimer() );
if( nConverted > 0 )
osl_writeFile( g_aFile, g_buffer, nConverted, (sal_uInt64 *)&nWritten );
osl_closeFile( g_aFile );
@@ -188,7 +188,7 @@ void init() {
nConverted = (sal_Int64 ) sprintf (
g_buffer,
"opening log file %f seconds past January 1st 1970\n"
- "corresponding to %lu ms after timer start\n",
+ "corresponding to %" SAL_PRIuUINT32 " ms after timer start\n",
aCurrentTime.Seconds + 1e-9 * aCurrentTime.Nanosec,
osl_getGlobalTimer());
@@ -199,7 +199,7 @@ void init() {
}
}
- nConverted = sprintf (g_buffer, "Process id is %lu\n", aProcessId);
+ nConverted = sprintf (g_buffer, "Process id is %" SAL_PRIuUINT32 "\n", aProcessId);
if( nConverted )
{
sal_Int64 nWritten;
@@ -247,7 +247,7 @@ extern "C" void SAL_CALL rtl_logfile_longTrace(char const * format, ...) {
{
MutexGuard g(getLogMutex());
int n1 = snprintf(
- g_buffer, g_BUFFERSIZE, "%06lu %lu ", time, threadId);
+ g_buffer, g_BUFFERSIZE, "%06" SAL_PRIuUINT32 " %" SAL_PRIuUINT32 " ", time, threadId);
if (n1 >= 0) {
sal_uInt64 n2;
osl_writeFile(