mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-22 04:13:30 +08:00
tools/l2cap-tester: Fix error message for setsockopt failure
This commit is contained in:
parent
e34d1c0481
commit
36547e6aaf
@ -935,7 +935,7 @@ static int create_l2cap_sock(struct test_data *data, uint16_t psm,
|
||||
if (setsockopt(sk, SOL_BLUETOOTH, BT_SECURITY, &sec,
|
||||
sizeof(sec)) < 0) {
|
||||
err = -errno;
|
||||
tester_warn("Can't bind socket: %s (%d)",
|
||||
tester_warn("Can't set security level: %s (%d)",
|
||||
strerror(errno), errno);
|
||||
close(sk);
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user