bluetooth: Fix x86_64 build of server

This commit is contained in:
Alexander von Gluck IV 2016-04-09 20:25:33 -05:00
parent 5bb75b4464
commit b4a9d9a6d6

View File

@ -712,7 +712,9 @@ LocalDeviceImpl::CommandComplete(struct hci_ev_cmd_complete* event,
BluetoothCommandOpcode(opcodeExpected), *(uint8*)(event + 1));
status = request->SendReply(&reply);
printf("Sending reply write ... %ld\n", status);
printf("%s: Sending reply write...\n", __func__);
if (status < B_OK)
printf("%s: Error sending reply write!\n", __func__);
ClearWantedEvent(request);
break;
@ -833,8 +835,10 @@ LocalDeviceImpl::InquiryResult(uint8* numberOfResponses, BMessage* request)
info++;
}
printf("%s: Sending reply...\n", __func__);
status_t status = request->SendReply(&reply);
printf("%s: Sending reply ... %ld\n", __FUNCTION__, status);
if (status < B_OK)
printf("%s: Error sending reply!\n", __func__);
}
@ -844,8 +848,11 @@ LocalDeviceImpl::InquiryComplete(uint8* status, BMessage* request)
BMessage reply(BT_MSG_INQUIRY_COMPLETED);
reply.AddInt8("status", *status);
printf("%s: Sending reply...\n", __func__);
status_t stat = request->SendReply(&reply);
printf("%s: Sending reply ... %ld\n", __FUNCTION__, stat);
if (stat < B_OK)
printf("%s: Error sending reply!\n", __func__);
ClearWantedEvent(request);
}
@ -870,8 +877,10 @@ LocalDeviceImpl::RemoteNameRequestComplete(
bdaddrUtils::ToString(remotename->bdaddr),
BluetoothError(remotename->status));
printf("%s: Sending reply...\n", __func__);
status_t status = request->SendReply(&reply);
printf("Sending reply ... %ld\n", status);
if (status < B_OK)
printf("%s: Error sending reply!\n", __func__);
// debug reply.PrintToStream();
// This request is not gonna be used anymore
@ -959,8 +968,10 @@ LocalDeviceImpl::ConnectionComplete(struct hci_ev_conn_complete* event,
if (event->status == BT_OK)
reply.AddInt16("handle", event->handle);
printf("%s: Sending reply...\n", __func__);
status_t status = request->SendReply(&reply);
printf("%s: Sending reply ... %ld\n", __FUNCTION__, status);
if (status < B_OK)
printf("%s: Error sending reply!\n", __func__);
// debug reply.PrintToStream();
// This request is not gonna be used anymore
@ -982,8 +993,10 @@ LocalDeviceImpl::DisconnectionComplete(
BMessage reply;
reply.AddInt8("status", event->status);
printf("%s: Sending reply...\n", __func__);
status_t status = request->SendReply(&reply);
printf("%s: Sending reply ... %ld\n", __FUNCTION__, status);
if (status < B_OK)
printf("%s: Error sending reply!\n", __func__);
// debug reply.PrintToStream();
ClearWantedEvent(request);