diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-10-30 15:39:10 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-10-30 16:15:06 +0200 |
commit | 0641dd420956d4c3777c17dd0c0a563fb222e265 (patch) | |
tree | 774cc6c996244a8b44c9f2cd676bdb767d1abc3b /sc | |
parent | 9eed0d4854623d28caf2c4d3bcdd6803db488475 (diff) |
Use SAL_WARN instead of writing to std::cerr
Change-Id: I28cc30bc4cd0053ced8de0b51e7cdc3ee0a237a5
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index 645d889e6367..b03c08734e99 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -77,10 +77,6 @@ size_t VectorRef::Marshal( cl_kernel k, int argno, int, cl_program ) static_cast<const formula::SingleVectorRefToken*>(ref); pHostBuffer = const_cast<double*>(pSVR->GetArray().mpNumericArray); szHostBuffer = pSVR->GetArrayLength() * sizeof(double); -#if 0 - std::cerr << "Marshal a Single vector of size " << pSVR->GetArrayLength(); - std::cerr << " at argument "<< argno << "\n"; -#endif } else if (ref->GetType() == formula::svDoubleVectorRef) { @@ -3572,9 +3568,7 @@ DynamicKernel* DynamicKernel::create( ScDocument& /* rDoc */, } catch (const UnhandledToken& ut) { - std::cerr << "\nDynamic formula compiler: unhandled token: "; - std::cerr << ut.mMessage << " at "; - std::cerr << ut.mFile << ":" << ut.mLineNumber << "\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: unhandled token: " << ut.mMessage << " at " << ut.mFile << ":" << ut.mLineNumber); #ifdef NO_FALLBACK_TO_SWINTERP assert(false); #else @@ -3584,7 +3578,7 @@ DynamicKernel* DynamicKernel::create( ScDocument& /* rDoc */, } catch (...) { - std::cerr << "Dynamic formula compiler: unhandled compiler error\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: unhandled compiler error"); return NULL; } return pDynamicKernel; @@ -3662,8 +3656,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, } catch (const UnhandledToken& ut) { - std::cerr << "\nDynamic formula compiler: unhandled token: "; - std::cerr << ut.mMessage << "\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: unhandled token: " << ut.mMessage << " at " << ut.mFile << ":" << ut.mLineNumber); #ifdef NO_FALLBACK_TO_SWINTERP assert(false); return true; @@ -3673,10 +3666,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, } catch (const OpenCLError& oce) { - std::cerr << "Dynamic formula compiler: OpenCL error: "; - std::cerr << oce.mError; - std::cerr << " at "; - std::cerr << oce.mFile << ":" << oce.mLineNumber << "\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: OpenCL error: " << oce.mError << " at " << oce.mFile << ":" << oce.mLineNumber); #ifdef NO_FALLBACK_TO_SWINTERP assert(false); return true; @@ -3686,9 +3676,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, } catch (const Unhandled& uh) { - std::cerr << "Dynamic formula compiler: unhandled case:"; - std::cerr << " at "; - std::cerr << uh.mFile << ":" << uh.mLineNumber << "\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: unhandled case at " << uh.mFile << ":" << uh.mLineNumber); #ifdef NO_FALLBACK_TO_SWINTERP assert(false); return true; @@ -3698,7 +3686,7 @@ bool FormulaGroupInterpreterOpenCL::interpret( ScDocument& rDoc, } catch (...) { - std::cerr << "Dynamic formula compiler: unhandled compiler error\n"; + SAL_WARN("sc.opencl", "Dynamic formula compiler: unhandled compiler error"); #ifdef NO_FALLBACK_TO_SWINTERP assert(false); return true; |