diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-20 16:31:18 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-06-20 16:31:18 +0200 |
commit | c7221b3666badbcf016e33997449e74778d979a9 (patch) | |
tree | 48d01f70820cc6909552c48418b65f7455e983e8 /ble | |
parent | 747bae79340f2e23a2b27eb8e64a9eea76a74bbd (diff) | |
download | ble-toys-c7221b3666badbcf016e33997449e74778d979a9.tar.gz ble-toys-c7221b3666badbcf016e33997449e74778d979a9.tar.bz2 ble-toys-c7221b3666badbcf016e33997449e74778d979a9.tar.xz ble-toys-c7221b3666badbcf016e33997449e74778d979a9.zip |
o Fixing wrong class name references in exception messages.
Diffstat (limited to 'ble')
-rw-r--r-- | ble/LinuxBluetooth.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } } |