Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm

Issue 2784373003: bluetooth: macOS: Adding explicit function to log NSError (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
diff --git a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
index b15b0f5fcadaf62d1ec2116ba74141c329bc8f60..8e4a14dd52d75dfdf3866ffe1f357e58f7fb30ca 100644
--- a/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
+++ b/device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm
@@ -262,7 +262,8 @@ void BluetoothRemoteGattCharacteristicMac::DidUpdateValue(NSError* error) {
BluetoothDeviceMac::GetGattErrorCodeFromNSError(error);
VLOG(1) << *this
<< ": Bluetooth error while reading for characteristic, domain: "
- << error << ", error code: " << error_code;
+ << BluetoothAdapterMac::String(error)
+ << ", error code: " << error_code;
callbacks.second.Run(error_code);
return;
}
@@ -307,7 +308,8 @@ void BluetoothRemoteGattCharacteristicMac::DidWriteValue(NSError* error) {
BluetoothDeviceMac::GetGattErrorCodeFromNSError(error);
VLOG(1) << *this
<< ": Bluetooth error while writing for characteristic, error: "
- << error << ", error code: " << error_code;
+ << BluetoothAdapterMac::String(error)
+ << ", error code: " << error_code;
callbacks.second.Run(error_code);
return;
}
@@ -334,7 +336,8 @@ void BluetoothRemoteGattCharacteristicMac::DidUpdateNotificationState(
VLOG(1) << *this
<< ": Bluetooth error while modifying notification state for "
"characteristic, error: "
- << error << ", error code: " << error_code;
+ << BluetoothAdapterMac::String(error)
+ << ", error code: " << error_code;
reentrant_safe_callbacks.second.Run(error_code);
return;
}
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698