diff -r 17af172ffa5f -r 630d2f34d719 telephonyprotocols/pdplayer/src/pdptiermanager.cpp --- a/telephonyprotocols/pdplayer/src/pdptiermanager.cpp Thu Aug 19 11:03:36 2010 +0300 +++ b/telephonyprotocols/pdplayer/src/pdptiermanager.cpp Tue Aug 31 16:23:08 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -18,6 +18,12 @@ @internalComponent */ + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "pdptiermanagerTraces.h" +#endif + #include "pdptiermanager.h" #include "mbmsengine.h" #include "pdptiermanagerselector.h" @@ -26,13 +32,12 @@ #include #include -#include "pdpmcpr.h" - #ifdef SYMBIAN_TRACE_ENABLE #define KPDPTierMgrTag KESockMetaConnectionTag -_LIT8(KPDPTierMgrSubTag, "pdptiermgr"); #endif +#include "pdpmcpr.h" + using namespace Messages; using namespace MeshMachine; using namespace ESock; @@ -170,16 +175,11 @@ iContextMonitors.Remove(monitorIndex); } -void CPrimaryContextsMonitor::ProcessError( - #ifdef _DEBUG - TInt aError - #else //remove compilation warning in release builds - TInt /*aError*/ - #endif - ) +void CPrimaryContextsMonitor::ProcessError(TInt aError) { __ASSERT_DEBUG(aError != KErrNone, User::Invariant()); - __FLOG_STATIC1(KPDPTierMgrTag, KPDPTierMgrSubTag, _L("PDP context monitoring error: %d"), aError); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPRIMARYCONTEXTSMONITOR_PROCESSERROR_1, ("PDP context monitoring error: %d"), aError); + (void)aError; //needed for debug builds } void CPrimaryContextsMonitor::RunL() @@ -437,7 +437,7 @@ */ MProviderSelector* CPDPTierManager::DoCreateProviderSelectorL(const Meta::SMetaData& aSelectionPreferences) { - __CFLOG_VAR((KPDPTierMgrTag, KPDPTierMgrSubTag, _L8("CPdpTierManager[%08x]::DoSelectProvider()"), this)); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPTIERMANAGER_DOCREATEPROVIDERSELECTORL_1, "CPdpTierManager[%08x]::DoSelectProvider()", (TUint)this); return TPdpSelectorFactory::NewSelectorL(aSelectionPreferences); } @@ -448,7 +448,7 @@ */ void CPDPTierManager::ConstructL() { - __CFLOG_VAR((KPDPTierMgrTag, KPDPTierMgrSubTag, _L8("ConstructL::In CPDPTierManager"))); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPTIERMANAGER_CONSTRUCTL_1, "ConstructL::In CPDPTierManager"); iMBMSEngine = CMBMSEngine::NewL(NodeId(), *this); }