diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-04 21:30:05 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-11 23:46:25 +0100 |
commit | 1c1dc47f78e1efaff2d6079ed9f6a8458d1f5366 (patch) | |
tree | bb3a354b414413bd9462c657abb284b59b796d3f /automation | |
parent | f25b58fcc9fa7b1e45908ee2a7945dde588d1bbe (diff) |
Move DBG_ERROR1 to OSL_TRACE
Diffstat (limited to 'automation')
-rw-r--r-- | automation/source/miniapp/testapp.cxx | 2 | ||||
-rw-r--r-- | automation/source/server/cmdbasestream.cxx | 8 | ||||
-rw-r--r-- | automation/source/server/scmdstrm.cxx | 4 | ||||
-rw-r--r-- | automation/source/server/server.cxx | 4 | ||||
-rw-r--r-- | automation/source/server/statemnt.cxx | 4 | ||||
-rw-r--r-- | automation/source/testtool/cretstrm.cxx | 2 | ||||
-rw-r--r-- | automation/source/testtool/objtest.cxx | 8 |
7 files changed, 16 insertions, 16 deletions
diff --git a/automation/source/miniapp/testapp.cxx b/automation/source/miniapp/testapp.cxx index c60365f18033..2c359e057434 100644 --- a/automation/source/miniapp/testapp.cxx +++ b/automation/source/miniapp/testapp.cxx @@ -207,7 +207,7 @@ USHORT MyDispatcher::ExecuteFunction( USHORT nSID, SfxPoolItem** ppArgs, USHORT case IDM_SYS_DLG: pMainWin->SysDlg(); break; default: { - DBG_ERROR1("Dispatcher kennt Funktion nicht %s",ByteString::CreateFromInt64(nSID).GetBuffer()); + OSL_TRACE("Dispatcher kennt Funktion nicht %s",ByteString::CreateFromInt64(nSID).GetBuffer()); return EXECUTE_NO; } diff --git a/automation/source/server/cmdbasestream.cxx b/automation/source/server/cmdbasestream.cxx index 2e15e18794f2..a147d5ea1547 100644 --- a/automation/source/server/cmdbasestream.cxx +++ b/automation/source/server/cmdbasestream.cxx @@ -163,7 +163,7 @@ void CmdBaseStream::Read (comm_USHORT &nNr) *pCommStream >> nId; if (pCommStream->IsEof()) return; #ifdef DBG_UTIL - if (nId != BinUSHORT) DBG_ERROR1( "Falscher Typ im Stream: Erwartet USHORT, gefunden :%hu", nId ); + if (nId != BinUSHORT) OSL_TRACE( "Falscher Typ im Stream: Erwartet USHORT, gefunden :%hu", nId ); #endif *pCommStream >> nNr; } @@ -174,7 +174,7 @@ void CmdBaseStream::Read (comm_ULONG &nNr) *pCommStream >> nId; if (pCommStream->IsEof()) return; #ifdef DBG_UTIL - if (nId != BinULONG) DBG_ERROR1( "Falscher Typ im Stream: Erwartet ULONG, gefunden :%hu", nId ); + if (nId != BinULONG) OSL_TRACE( "Falscher Typ im Stream: Erwartet ULONG, gefunden :%hu", nId ); #endif *pCommStream >> nNr; } @@ -184,7 +184,7 @@ void CmdBaseStream::Read (comm_UniChar* &aString, comm_USHORT &nLenInChars ) comm_USHORT nId; *pCommStream >> nId; #ifdef DBG_UTIL - if (nId != BinString) DBG_ERROR1( "Falscher Typ im Stream: Erwartet String, gefunden :%hu", nId ); + if (nId != BinString) OSL_TRACE( "Falscher Typ im Stream: Erwartet String, gefunden :%hu", nId ); #endif *pCommStream >> nLenInChars; @@ -204,7 +204,7 @@ void CmdBaseStream::Read (comm_BOOL &bBool) comm_USHORT nId; *pCommStream >> nId; #ifdef DBG_UTIL - if (nId != BinBool) DBG_ERROR1( "Falscher Typ im Stream: Erwartet BOOL, gefunden :%hu", nId ); + if (nId != BinBool) OSL_TRACE( "Falscher Typ im Stream: Erwartet BOOL, gefunden :%hu", nId ); #endif *pCommStream >> bBool; } diff --git a/automation/source/server/scmdstrm.cxx b/automation/source/server/scmdstrm.cxx index 977236cc5a3f..e8399e43b342 100644 --- a/automation/source/server/scmdstrm.cxx +++ b/automation/source/server/scmdstrm.cxx @@ -133,7 +133,7 @@ void SCmdStream::Read ( SfxPoolItem *&pItem ) } break; default: - DBG_ERROR1( "Ungltiger Typ im Stream:%hu", nType ); + OSL_TRACE( "Ungltiger Typ im Stream:%hu", nType ); #if OSL_DEBUG_LEVEL > 1 StatementList::m_pDbgWin->AddText( "Ungltiger Typ !!!! " ); #endif @@ -203,7 +203,7 @@ void SCmdStream::Read ( ::com::sun::star::beans::PropertyValue &rItem ) } break; default: - DBG_ERROR1( "Ungltiger Typ im Stream:%hu", nType ); + OSL_TRACE( "Ungltiger Typ im Stream:%hu", nType ); #if OSL_DEBUG_LEVEL > 1 StatementList::m_pDbgWin->AddText( "Ungltiger Typ !!!! " ); #endif diff --git a/automation/source/server/server.cxx b/automation/source/server/server.cxx index 322d70522fe3..3dbfe7212234 100644 --- a/automation/source/server/server.cxx +++ b/automation/source/server/server.cxx @@ -700,7 +700,7 @@ BOOL ImplRemoteControl::QueCommands( ULONG nServiceId, SvStream *pIn ) if( nServiceId != SI_IPCCommandBlock && nServiceId != SI_DirectCommandBlock ) { - DBG_ERROR1( "Ungltiger Request :%i", (int)nServiceId ); + OSL_TRACE( "Ungltiger Request :%i", (int)nServiceId ); return FALSE; } @@ -738,7 +738,7 @@ BOOL ImplRemoteControl::QueCommands( ULONG nServiceId, SvStream *pIn ) break; } default: - DBG_ERROR1( "Unbekannter Request Nr:%i", nId ); + OSL_TRACE( "Unbekannter Request Nr:%i", nId ); break; } if( !pIn->IsEof() ) diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx index e363f83c5195..9163663f5c15 100644 --- a/automation/source/server/statemnt.cxx +++ b/automation/source/server/statemnt.cxx @@ -987,7 +987,7 @@ void StatementCommand::WriteControlData( Window *pBase, ULONG nConf, BOOL bFirst aToolBoxItemType.AssignAscii("TOOLBOXITEM_BREAK"); break; default: - DBG_ERROR1( "Unknown TOOLBOXITEM %i", pTB->GetItemType( i ) ); + OSL_TRACE( "Unknown TOOLBOXITEM %i", pTB->GetItemType( i ) ); } if ( pTB->GetItemCommand(pTB->GetItemId( i )).Len() || ( nConf & DH_MODE_ALLWIN ) ) pRet->GenReturn ( RET_WinInfo, SmartId( pTB->GetItemCommand(pTB->GetItemId( i )) ), (comm_ULONG)WINDOW_BASE, @@ -1090,7 +1090,7 @@ void StatementCommand::WriteControlData( Window *pBase, ULONG nConf, BOOL bFirst aMenuItemType.AssignAscii("MENUITEM_DONTKNOW"); break; default: - DBG_ERROR1( "Unknown MENUITEM %i", pMenu->GetItemType( i ) ); + OSL_TRACE( "Unknown MENUITEM %i", pMenu->GetItemType( i ) ); } if ( pMenu->GetItemCommand(nID).Len() || ( nConf & DH_MODE_ALLWIN ) ) pRet->GenReturn ( RET_WinInfo, SmartId( pMenu->GetItemCommand(nID) ), (comm_ULONG)0, diff --git a/automation/source/testtool/cretstrm.cxx b/automation/source/testtool/cretstrm.cxx index 0f9781c73970..d9e13a31bb65 100644 --- a/automation/source/testtool/cretstrm.cxx +++ b/automation/source/testtool/cretstrm.cxx @@ -63,7 +63,7 @@ void CRetStream::Read( SbxValue &aValue ) *pSammel >> nId; if (nId != BinSbxValue) { - DBG_ERROR1( "Falscher Typ im Stream: Erwartet SbxValue, gefunden :%hu", nId ); + OSL_TRACE( "Falscher Typ im Stream: Erwartet SbxValue, gefunden :%hu", nId ); } SbxBaseRef xBase = SbxBase::Load( *pSammel ); if ( IS_TYPE( SbxValue, xBase ) ) diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx index d061dcdf2e0b..ca65865ff9d2 100644 --- a/automation/source/testtool/objtest.cxx +++ b/automation/source/testtool/objtest.cxx @@ -2317,7 +2317,7 @@ void TestToolObj::SFX_NOTIFY( SfxBroadcaster&, const TypeId&, long aMS = long( aDiff.GetMSFromTime() ); if ( Abs( aMS - nWait ) > 100 ) { - DBG_ERROR1("Wait was off limit by %i", aDiff.GetMSFromTime() - nWait ); + OSL_TRACE("Wait was off limit by %i", aDiff.GetMSFromTime() - nWait ); } #endif } @@ -3428,7 +3428,7 @@ BOOL TestToolObj::ReturnResults( SvStream *pIn ) break; } default: - DBG_ERROR1("Unbekannter Sub Return Code bei Profile: %hu", nUId ); + OSL_TRACE("Unbekannter Sub Return Code bei Profile: %hu", nUId ); break; } } @@ -3708,7 +3708,7 @@ BOOL TestToolObj::ReturnResults( SvStream *pIn ) } break; default: - DBG_ERROR1( "Unbekannter Return Code: %iu", nRet ); + OSL_TRACE( "Unbekannter Return Code: %iu", nRet ); break; } @@ -3743,7 +3743,7 @@ BOOL TestToolObj::ReturnResults( SvStream *pIn ) break; } default: - DBG_ERROR1( "Unbekannter Request im Return Stream Nr: %iu", nId ); + OSL_TRACE( "Unbekannter Request im Return Stream Nr: %iu", nId ); break; } if( !pIn->IsEof() ) |