diff -r 25fce757be94 -r e02eb84a14d2 usbengines/usblocodplugin/src/usblcdactive.cpp --- a/usbengines/usblocodplugin/src/usblcdactive.cpp Tue Aug 31 16:13:57 2010 +0300 +++ b/usbengines/usblocodplugin/src/usblcdactive.cpp Wed Sep 01 12:20:49 2010 +0100 @@ -20,8 +20,10 @@ #include "usblcdactive.h" #include #include -#include "debug.h" +#ifdef __FLOG_ACTIVE +_LIT8(KLogComponent, "USBLcdPlugin"); +#endif // ======== MEMBER FUNCTIONS ======== @@ -31,7 +33,7 @@ // CUsbLcdActive* CUsbLcdActive::NewL(MLocodBearerPluginObserver& aObserver) { - LOG_FUNC + LOG_STATIC_FUNC_ENTRY CUsbLcdActive* self = new (ELeave) CUsbLcdActive(aObserver); CleanupStack::PushL(self); self->ConstructL(); @@ -72,13 +74,13 @@ if( iStatus != KErrNone ) { - LOG1("CUsbLcdActive::RunL() iStatus = %d",iStatus.Int()); + LOGTEXT2(_L8("CUsbLcdActive::RunL() error = %d"),iStatus.Int()); } else { TInt ret = iProperty.Get( value ); - LOG2("Personality: %d, ret: %d", value, ret); + LOGTEXT3(_L8("Personality: %d, ret: %d"), value, ret); iProperty.Subscribe(iStatus); SetActive(); if (ret == KErrNone) @@ -150,7 +152,7 @@ void CUsbLcdActive::HandleUsbPersonalityChange( TInt aNewPersonalityId ) { LOG_FUNC - LOG1( "aNewPersonalityId: %d", aNewPersonalityId ); + LOGTEXT2( _L8( "aNewPersonalityId: %d"), aNewPersonalityId ); TBool isPcSuiteActive( EFalse ); if ( ( aNewPersonalityId == KUsbPersonalityIdPCSuite ) || ( aNewPersonalityId == KUsbPersonalityIdPCSuiteMTP ) )