diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-04-25 12:12:22 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-04-25 12:52:59 +0300 |
commit | ab07f81d0b5ffc4297d5f15d2458c5cc9217800f (patch) | |
tree | 70b5c99e350abbd282f1c95e8e4d95ef6d3116bb /cppuhelper | |
parent | 29c9712b042e410e93e92dead15f353f6ca1e263 (diff) |
Print the important failure messages on iOS even in a non-debug build
It might be that having fprintfs leftover in an app submitted to the
App Store is a no-go, but will fix that then if/when it happens.
Change-Id: Ic671fcce567c655a06fd4ed139100dc9b6f435be
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/shlib.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index 9218581ff005..debbdb08c33c 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -197,6 +197,10 @@ void cppuhelper::detail::loadSharedLibComponentFactory( } if (fp == 0) { SAL_WARN("cppuhelper", "unknown factory name \"" << name << "\""); +#if defined IOS && !defined SAL_LOG_WARN + // If the above SAL_WARN expanded to nothing, print to stderr... + fprintf(stderr, "Unknown factory name %s\n", OUStringToOString(name, RTL_TEXTENCODING_UTF8).getStr()); +#endif throw css::loader::CannotActivateFactoryException( "unknown factory name \"" + name + "\"", css::uno::Reference<css::uno::XInterface>()); @@ -217,6 +221,10 @@ void cppuhelper::detail::loadSharedLibComponentFactory( } } SAL_WARN("cppuhelper", "unknown constructor name \"" << constructor << "\""); +#if defined IOS && !defined SAL_LOG_WARN + // If the above SAL_WARN expanded to nothing, print to stderr... + fprintf(stderr, "Unknown constructor name %s\n", OUStringToOString(constructor, RTL_TEXTENCODING_UTF8).getStr()); +#endif throw css::loader::CannotActivateFactoryException( "unknown constructor name \"" + constructor + "\"", css::uno::Reference<css::uno::XInterface>()); |