summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-21 00:03:02 +0200
committerTor Lillqvist <tml@collabora.com>2013-11-21 00:05:33 +0200
commit3b176d77e7021d1ce3e82c28b921bbd4f7523a7d (patch)
tree3b3963adf1c13bfbf36ebdf57339c4b89411daa3 /sc
parent7ed6edc1d20a9c2aceea26e4a49a4f00d1047ad9 (diff)
Use SAL_INFO() instead of printf()
printf() and SAL_INFO() / SAL_DEBUG() output apparently don't end up in correct order in a cppunit log file which can be extremely confusing. So let's use SAL_INFO() (with the tag sc.qa) for the qahelper debug output. Change-Id: I529482c07651f84688ec5751d2b3dfc7d89cb4ca
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/helper/qahelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index 23b45c8f89e5..1378e726a7ea 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -470,7 +470,7 @@ ScDocShellRef ScBootstrapFixture::load( bool bReadWrite,
SfxItemSet* pSet = pSrcMed->GetItemSet();
pSet->Put(SfxStringItem(SID_PASSWORD, *pPassword));
}
- printf("about to load %s\n", OUStringToOString( rURL, RTL_TEXTENCODING_UTF8 ).getStr() );
+ SAL_INFO( "sc.qa", "about to load " << rURL );
if (!xDocShRef->DoLoad(pSrcMed))
{
xDocShRef->DoClose();
@@ -573,7 +573,7 @@ void ScBootstrapFixture::miscRowHeightsTest( TestParam* aTestValues, unsigned in
for ( unsigned int index=0; index<numElems; ++index )
{
OUString sFileName = OUString::createFromAscii( aTestValues[ index ].sTestDoc );
- printf("aTestValues[%u] %s\n", index, OUStringToOString( sFileName, RTL_TEXTENCODING_UTF8 ).getStr() );
+ SAL_INFO( "sc.qa", "aTestValues[" << index << "] " << sFileName );
int nImportType = aTestValues[ index ].nImportType;
int nExportType = aTestValues[ index ].nExportType;
ScDocShellRef xShell = loadDoc( sFileName, nImportType );
@@ -597,7 +597,7 @@ void ScBootstrapFixture::miscRowHeightsTest( TestParam* aTestValues, unsigned in
bool bCheckOpt = ( ( aTestValues[ index ].pData[ i ].nCheck & CHECK_OPTIMAL ) == CHECK_OPTIMAL );
for ( ; nRow <= nEndRow; ++nRow )
{
- printf("\t checking row %" SAL_PRIdINT32 " for height %d\n", nRow, nExpectedHeight );
+ SAL_INFO( "sc.qa", " checking row " << nRow << " for height " << nExpectedHeight );
int nHeight = sc::TwipsToHMM( pDoc->GetRowHeight(nRow, nTab, false) );
if ( bCheckOpt )
{