From c7221b3666badbcf016e33997449e74778d979a9 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 20 Jun 2015 16:31:18 +0200 Subject: o Fixing wrong class name references in exception messages. --- ble/LinuxBluetooth.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ble') diff --git a/ble/LinuxBluetooth.cpp b/ble/LinuxBluetooth.cpp index 80e68cb..ae8f984 100644 --- a/ble/LinuxBluetooth.cpp +++ b/ble/LinuxBluetooth.cpp @@ -145,7 +145,7 @@ void LinuxBluetoothGatt::connect() { l2cap = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_L2CAP); if (l2cap < 0) { - throw BluetoothException(&device, "LinuxBluetoothDevice::connect(): socket(): " + errnoAsString()); + throw BluetoothException(&device, "LinuxBluetoothGatt::connect(): socket(): " + errnoAsString()); } memset(&addr, 0, sizeof(addr)); @@ -156,7 +156,7 @@ void LinuxBluetoothGatt::connect() { if (bind(l2cap, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(l2cap); - throw BluetoothException(&device, "LinuxBluetoothDevice::connect(): bind(): " + errnoAsString()); + throw BluetoothException(&device, "LinuxBluetoothGatt::connect(): bind(): " + errnoAsString()); } struct bt_security btsec; @@ -164,7 +164,7 @@ void LinuxBluetoothGatt::connect() { btsec.level = BT_SECURITY_LOW; if (setsockopt(l2cap, SOL_BLUETOOTH, BT_SECURITY, &btsec, sizeof(btsec)) != 0) { close(l2cap); - throw BluetoothException(&device, "LinuxBluetoothDevice::connect(): setsockopt(): " + errnoAsString()); + throw BluetoothException(&device, "LinuxBluetoothGatt::connect(): setsockopt(): " + errnoAsString()); } memset(&addr, 0, sizeof(addr)); @@ -181,7 +181,7 @@ void LinuxBluetoothGatt::connect() { if (::connect(l2cap, (struct sockaddr *) &addr, sizeof(addr)) < 0) { close(l2cap); - throw BluetoothException(&device, "LinuxBluetoothDevice::connect(): connect(): " + errnoAsString()); + throw BluetoothException(&device, "LinuxBluetoothGatt::connect(): connect(): " + errnoAsString()); } } -- cgit v1.2.3