--- a/bluetoothmgmt/bluetoothclientlib/btlib/pairing.cpp Thu Sep 23 17:06:47 2010 +0300
+++ b/bluetoothmgmt/bluetoothclientlib/btlib/pairing.cpp Wed Oct 13 16:20:29 2010 +0300
@@ -121,7 +121,13 @@
{
LOG_FUNC
__ASSERT_ALWAYS(SubSessionHandle(), PANIC(KPairingServerPanicCat, EPairingServerOobDataSessionNotOpen));
- static_cast<void>(SendReceive(EPairingServerOobDataRefreshLocal));
+ IF_FLOGGING(TInt err = ) SendReceive(EPairingServerOobDataRefreshLocal);
+ IF_FLOGGING(
+ if (err != KErrNone)
+ {
+ LOG1(_L("ALERT: Refresh local OOB data completed with error %d"), err);
+ }
+ );
}
/**
@@ -152,7 +158,13 @@
{
LOG_FUNC
__ASSERT_ALWAYS(SubSessionHandle(), PANIC(KPairingServerPanicCat, EPairingServerOobDataSessionNotOpen));
- static_cast<void>(SendReceive(EPairingServerOobDataCancelReadLocal));
+ IF_FLOGGING(TInt err = ) SendReceive(EPairingServerOobDataCancelReadLocal);
+ IF_FLOGGING(
+ if (err != KErrNone)
+ {
+ LOG1(_L("ALERT: Cancel read Local OOB data completed with error %d"), err);
+ }
+ );
}
/**
@@ -219,7 +231,13 @@
__ASSERT_ALWAYS(SubSessionHandle(), PANIC(KPairingServerPanicCat, EPairingServerOobDataSessionNotOpen));
TPckgBuf<TBTDevAddr> addrBuf(aAddr);
TIpcArgs args(&addrBuf);
- static_cast<void>(SendReceive(EPairingServerOobDataClearRemote, args));
+ IF_FLOGGING(TInt err = ) SendReceive(EPairingServerOobDataClearRemote, args);
+ IF_FLOGGING(
+ if (err != KErrNone)
+ {
+ LOG1(_L("ALERT: Clear Remote OOB data completed with %d"), err);
+ }
+ );
}
@@ -344,7 +362,13 @@
EXPORT_C void RBluetoothPairingResult::CancelSimplePairingResult()
{
LOG_FUNC
- SendReceive(EPairingServerCancelSimplePairingResult);
+ IF_FLOGGING(TInt err = ) SendReceive(EPairingServerCancelSimplePairingResult);
+ IF_FLOGGING(
+ if (err != KErrNone)
+ {
+ LOG1(_L("ALERT: Cancel simple pairing result completed with %d"), err);
+ }
+ );
}
@@ -416,7 +440,13 @@
EXPORT_C void RBluetoothAuthenticationResult::CancelAuthenticationResult()
{
LOG_FUNC
- SendReceive(EPairingServerCancelAuthenticationResult);
+ IF_FLOGGING(TInt err = ) SendReceive(EPairingServerCancelAuthenticationResult);
+ IF_FLOGGING(
+ if (err != KErrNone)
+ {
+ LOG1(_L("ALERT: Cancel authentication result completed with %d"), err);
+ }
+ );
}