Removed the no longer needed debug code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23900 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002, Marcus Overhagen. All rights reserved.
|
* Copyright 2002-2007, Marcus Overhagen. All rights reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -74,13 +74,6 @@ void find_media_addon_server_port()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void check(int code)
|
|
||||||
{
|
|
||||||
static int rep = 0;
|
|
||||||
if(code == 0x204 && rep++ == 200)
|
|
||||||
debugger("scheisse!");
|
|
||||||
}
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
request_data::SendReply(status_t result, reply_data *reply, int replysize) const
|
request_data::SendReply(status_t result, reply_data *reply, int replysize) const
|
||||||
{
|
{
|
||||||
@@ -145,7 +138,7 @@ status_t QueryAddonServer(int32 msgcode, request_data *request, int requestsize,
|
|||||||
status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg, int size)
|
status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg, int size)
|
||||||
{
|
{
|
||||||
status_t rv;
|
status_t rv;
|
||||||
check(msgcode);
|
|
||||||
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
|
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
|
||||||
if (rv != B_OK) {
|
if (rv != B_OK) {
|
||||||
ERROR("SendToPort: write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, sendport, rv, strerror(rv));
|
ERROR("SendToPort: write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, sendport, rv, strerror(rv));
|
||||||
@@ -158,7 +151,7 @@ status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg, int size
|
|||||||
} else {
|
} else {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
check(msgcode);
|
|
||||||
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
|
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
|
||||||
if (rv != B_OK) {
|
if (rv != B_OK) {
|
||||||
ERROR("SendToPort: retrying write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, sendport, rv, strerror(rv));
|
ERROR("SendToPort: retrying write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, sendport, rv, strerror(rv));
|
||||||
@@ -176,7 +169,6 @@ status_t QueryPort(port_id requestport, int32 msgcode, request_data *request, in
|
|||||||
|
|
||||||
request->reply_port = _PortPool->GetPort();
|
request->reply_port = _PortPool->GetPort();
|
||||||
|
|
||||||
check(msgcode);
|
|
||||||
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
|
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
|
||||||
|
|
||||||
if (rv != B_OK) {
|
if (rv != B_OK) {
|
||||||
@@ -191,7 +183,7 @@ status_t QueryPort(port_id requestport, int32 msgcode, request_data *request, in
|
|||||||
_PortPool->PutPort(request->reply_port);
|
_PortPool->PutPort(request->reply_port);
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
check(msgcode);
|
|
||||||
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
|
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
|
||||||
if (rv != B_OK) {
|
if (rv != B_OK) {
|
||||||
ERROR("QueryPort: retrying write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, requestport, rv, strerror(rv));
|
ERROR("QueryPort: retrying write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, requestport, rv, strerror(rv));
|
||||||
|
|||||||
@@ -477,8 +477,6 @@ BTimeSource::AddMe(BMediaNode *node)
|
|||||||
cmd.node = node->Node();
|
cmd.node = node->Node();
|
||||||
SendToPort(fControlPort, TIMESOURCE_ADD_SLAVE_NODE, &cmd, sizeof(cmd));
|
SendToPort(fControlPort, TIMESOURCE_ADD_SLAVE_NODE, &cmd, sizeof(cmd));
|
||||||
} else {
|
} else {
|
||||||
if (this == dynamic_cast<BTimeSource *>(node))
|
|
||||||
debugger("fuck you!");
|
|
||||||
DirectAddMe(node->Node());
|
DirectAddMe(node->Node());
|
||||||
}
|
}
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user