diff -r 8ab6687fb94c -r 3adadc800673 telephonyserverplugins/common_tsy/commontsy/src/mmtsy/ChargingStatusObserver.cpp --- a/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/ChargingStatusObserver.cpp Thu May 27 14:05:07 2010 +0300 +++ b/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/ChargingStatusObserver.cpp Fri Jun 11 14:49:29 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-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,8 +18,13 @@ // INCLUDE FILES + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "ChargingStatusObserverTraces.h" +#endif + #include "ChargingStatusObserver.h" -#include // ======== MEMBER FUNCTIONS ======== @@ -81,7 +86,7 @@ if ( KErrNone != errorStatus ) { -TFLOGSTRING2("TSY: CChargingStatusObserver::RunL - iStatus: %d", errorStatus ); +OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CCHARGINGSTATUSOBSERVER_RUNL_1, "TSY: CChargingStatusObserver::RunL - iStatus: %d", errorStatus ); iChargingStatusNotifier.NotifyChargingStatus( errorStatus, batteryInfo ); return; @@ -90,7 +95,7 @@ // property updated, get new value TInt level( 0 ); TInt error = iChargingStatus.Get( level ); -TFLOGSTRING2("TSY: CChargingStatusObserver::RunL error: %d", error); +OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CCHARGINGSTATUSOBSERVER_RUNL_2, "TSY: CChargingStatusObserver::RunL error: %d", error); if ( KErrNone == error ) {