diff options
-rw-r--r-- | binaryurp/source/writer.cxx | 32 | ||||
-rw-r--r-- | sal/osl/all/log.cxx | 3 |
2 files changed, 35 insertions, 0 deletions
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx index 84edbd40187d..a2e2d3818528 100644 --- a/binaryurp/source/writer.cxx +++ b/binaryurp/source/writer.cxx @@ -35,6 +35,17 @@ #include "currentcontext.hxx" #include "specialfunctionids.hxx" #include "writer.hxx" +#include <rtl/ustrbuf.hxx> + +namespace { + OUString getAsString(const rtl::ByteSequence &tid) + { + OUStringBuffer aStr; + for (sal_Int32 i = 0; i < tid.getLength(); ++i) + aStr.append((sal_Int32)tid[i], 16); + return aStr.makeStringAndClear(); + } +} namespace binaryurp { @@ -105,6 +116,10 @@ void Writer::queueRequest( osl::MutexGuard g(mutex_); queue_.push_back(Item(tid, oid, type, member, inArguments, cc)); items_.set(); + + SAL_DEBUG("writer::queueRequest tid " << getAsString(tid) << + " type " << OUString(type.get()->pTypeName) << + " member " << OUString(member.get()->pTypeName)); } void Writer::queueReply( @@ -119,6 +134,12 @@ void Writer::queueReply( tid, member, setter, exception, returnValue, outArguments, setCurrentContextMode)); items_.set(); + + SAL_DEBUG("writer::queueReply tid " << getAsString(tid) << + " member " << OUString(member.get()->pTypeName) << + " exception? " << exception << + " setter " << setter << + " setCurrentContextMode " << setCurrentContextMode); } void Writer::unblock() { @@ -193,6 +214,12 @@ void Writer::sendRequest( std::vector< BinaryAny > const & inArguments, bool currentContextMode, css::uno::UnoInterfaceReference const & currentContext) { + SAL_DEBUG("writer::sendRequest tid " << getAsString(tid) << + " type " << OUString(type.get()->pTypeName) << + " member " << OUString(member.get()->pTypeName) << + " cctx mode? " << currentContextMode << + " cur ctx " << currentContext.get()); + OSL_ASSERT(tid.getLength() != 0 && !oid.isEmpty() && member.is()); css::uno::TypeDescription t(type); sal_Int32 functionId = 0; @@ -341,6 +368,11 @@ void Writer::sendReply( bool exception, BinaryAny const & returnValue, std::vector< BinaryAny > const & outArguments) { + SAL_DEBUG("writer::sendReply tid " << getAsString(tid) << + " member " << OUString(member.get()->pTypeName) << + " exception? " << exception << + " setter " << setter); + OSL_ASSERT(tid.getLength() != 0 && member.is() && member.get()->bComplete); std::vector< unsigned char > buf; bool newTid = tid != lastTid_; diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index 67e384cb6fcd..c62b1e06bfbd 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -240,6 +240,9 @@ void log( syslog(prio, "%s", s.str().c_str()); #endif } else { + TimeValue pTime = { 0, 0 }; + osl_getSystemTime(&pTime); + std::fprintf(stderr, "T%ld.%.9ld - ", (long)pTime.Seconds, (long)pTime.Nanosec); std::fputs(s.str().c_str(), stderr); std::fflush(stderr); } |