diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-25 09:47:38 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-01-25 12:11:02 +0100 |
commit | 86fb3f12eb07614880f51825f89ed4fb31af2d36 (patch) | |
tree | d16ea57c82fb1c95f2dcc7e5e06b4d32dcff6607 /xmlsecurity/source | |
parent | e1055318376c6e2bfbbd8c2bfb7eb8c0f3c85775 (diff) |
xmlsecurity: enable libxmlsec error callback
Change-Id: I9d3dd7c425723337d36fdf9f9e761398616d289d
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/xmlsec/errorcallback.cxx | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/xmlsecurity/source/xmlsec/errorcallback.cxx b/xmlsecurity/source/xmlsec/errorcallback.cxx index abf04751667a..14e4863bc2a9 100644 --- a/xmlsecurity/source/xmlsec/errorcallback.cxx +++ b/xmlsecurity/source/xmlsec/errorcallback.cxx @@ -29,21 +29,18 @@ using namespace ::com::sun::star::xml::crypto; extern "C" -void errorCallback(const char * /*file*/, - int /*line*/, - const char * /*func*/, - const char * /*errorObject*/, - const char * /*errorSubject*/, - int /*reason*/, - const char * /*msg*/) +void errorCallback(const char* file, + int line, + const char* func, + const char* errorObject, + const char* errorSubject, + int reason, + const char* msg) { -#if OSL_DEBUG_LEVEL > 1 -// const char * afunc = func ? func : ""; -// const char * errObj = errorObject ? errorObject : ""; -// const char * errSub = errorSubject ? errorSubject : ""; -// const char * amsg = msg ? msg : ""; -// fprintf(stdout, "xmlsec error: %s, %s, %s, %i %s \n", afunc, errObj, errSub, reason, amsg); -#endif + const char* pErrorObject = errorObject ? errorObject : ""; + const char* pErrorSubject = errorSubject ? errorSubject : ""; + const char* pMsg = msg ? msg : ""; + SAL_WARN("xmlsecurity.xmlsec", file << ":" << line << ": " << func << "() '" << pErrorObject << "' '" << pErrorSubject << "' " << reason << " '" << pMsg << "'"); } void setErrorRecorder() |