summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-02-27 19:15:08 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-02-27 18:50:52 +0000
commita620a82a90614300a2df4133a85dd585b8fbfd20 (patch)
tree2db67b928e58223e49403fd3cbbe0a28b4dab988 /l10ntools
parent6acf3f5bd7fe40711e3f87f8a67e439553b133df (diff)
Add SAL_WARN + convert some printf into SAL_WARN
Change-Id: I3760e50796605ce50ef2e91951fc839b84669b89 Reviewed-on: https://gerrit.libreoffice.org/22733 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/merge.cxx8
-rw-r--r--l10ntools/source/po.cxx1
2 files changed, 4 insertions, 5 deletions
diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx
index 8be78d0e663c..3922e89f0b9d 100644
--- a/l10ntools/source/merge.cxx
+++ b/l10ntools/source/merge.cxx
@@ -47,9 +47,7 @@ namespace
}
catch (const PoIfstream::Exception&)
{
- printf(
- "Warning : %s contains invalid entry\n",
- rFileName.getStr() );
+ SAL_WARN("l10ntools", rFileName.getStr() << " contains invalid entry\n");
return false;
}
return true;
@@ -216,7 +214,7 @@ MergeDataFile::MergeDataFile(
std::ifstream aInputStream( rFileName.getStr() );
if ( !aInputStream.is_open() )
{
- printf("Warning : Can't open po path container file\n");
+ SAL_WARN("l10ntools", "Can't open po path container file for " << rFileName.getStr());
return;
}
std::string sPoFile;
@@ -233,7 +231,7 @@ MergeDataFile::MergeDataFile(
aPoInput.open( sPoFileName );
if ( !aPoInput.isOpen() )
{
- printf( "Warning : Can't open %s\n", sPoFileName.getStr() );
+ SAL_WARN("l10ntools", "Can't open file: " << sPoFileName.getStr());
return;
}
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx
index 3019006c33bd..6aa7c1d6f48c 100644
--- a/l10ntools/source/po.cxx
+++ b/l10ntools/source/po.cxx
@@ -596,6 +596,7 @@ void PoIfstream::readEntry( PoEntry& rPoEntry )
}
else
{
+ SAL_WARN("l10ntools", "Parse problem with entry: " << aGenPo.getMsgStr());
throw PoIfstream::Exception();
}
}