Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d358c377
Kaydet (Commit)
d358c377
authored
Ara 21, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Print file and not pointer value in SAL_INFO
Change-Id: I96e7ac419f4300a1dd62a5c24611c1467ef3b19a
üst
928c8c80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
file.cxx
sal/osl/unx/file.cxx
+4
-2
No files found.
sal/osl/unx/file.cxx
Dosyayı görüntüle @
d358c377
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#include "osl/diagnose.h"
#include "osl/diagnose.h"
#include "rtl/alloc.h"
#include "rtl/alloc.h"
#include <rtl/string.hxx>
#include <sal/log.hxx>
#include <sal/log.hxx>
#include "system.h"
#include "system.h"
...
@@ -992,7 +994,7 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u
...
@@ -992,7 +994,7 @@ SAL_CALL osl_openFilePath( const char *cpFilePath, oslFileHandle* pHandle, sal_u
pImpl
->
m_state
|=
FileHandle_Impl
::
STATE_WRITEABLE
;
pImpl
->
m_state
|=
FileHandle_Impl
::
STATE_WRITEABLE
;
pImpl
->
m_size
=
sal
::
static_int_cast
<
sal_uInt64
>
(
aFileStat
.
st_size
);
pImpl
->
m_size
=
sal
::
static_int_cast
<
sal_uInt64
>
(
aFileStat
.
st_size
);
SAL_INFO
(
"sal.file"
,
"osl_openFile("
<<
pImpl
->
m_str
FilePath
<<
", "
<<
(
flags
&
O_RDWR
?
"writeable"
:
"readonly"
)
<<
") => "
<<
pImpl
->
m_fd
);
SAL_INFO
(
"sal.file"
,
"osl_openFile("
<<
cp
FilePath
<<
", "
<<
(
flags
&
O_RDWR
?
"writeable"
:
"readonly"
)
<<
") => "
<<
pImpl
->
m_fd
);
*
pHandle
=
(
oslFileHandle
)(
pImpl
);
*
pHandle
=
(
oslFileHandle
)(
pImpl
);
return
osl_File_E_None
;
return
osl_File_E_None
;
...
@@ -1028,7 +1030,7 @@ SAL_CALL osl_closeFile( oslFileHandle Handle )
...
@@ -1028,7 +1030,7 @@ SAL_CALL osl_closeFile( oslFileHandle Handle )
if
(
pImpl
==
0
)
if
(
pImpl
==
0
)
return
osl_File_E_INVAL
;
return
osl_File_E_INVAL
;
SAL_INFO
(
"sal.file"
,
"osl_closeFile("
<<
pImpl
->
m_strFilePath
<<
":"
<<
pImpl
->
m_fd
<<
")"
);
SAL_INFO
(
"sal.file"
,
"osl_closeFile("
<<
rtl
::
OString
(
pImpl
->
m_strFilePath
)
<<
":"
<<
pImpl
->
m_fd
<<
")"
);
if
(
pImpl
->
m_kind
==
FileHandle_Impl
::
KIND_MEM
)
if
(
pImpl
->
m_kind
==
FileHandle_Impl
::
KIND_MEM
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment