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:
Marcus Overhagen 2008-02-06 22:08:25 +00:00
parent c8679751f6
commit 05b79eadff
2 changed files with 4 additions and 14 deletions

View File

@ -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.
*/
@ -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
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 rv;
check(msgcode);
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
if (rv != B_OK) {
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 {
return rv;
}
check(msgcode);
rv = write_port_etc(sendport, msgcode, msg, size, B_RELATIVE_TIMEOUT, TIMEOUT);
if (rv != B_OK) {
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();
check(msgcode);
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
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);
return rv;
}
check(msgcode);
rv = write_port_etc(requestport, msgcode, request, requestsize, B_RELATIVE_TIMEOUT, TIMEOUT);
if (rv != B_OK) {
ERROR("QueryPort: retrying write_port failed, msgcode 0x%lx, port %ld, error %#lx (%s)\n", msgcode, requestport, rv, strerror(rv));

View File

@ -477,8 +477,6 @@ BTimeSource::AddMe(BMediaNode *node)
cmd.node = node->Node();
SendToPort(fControlPort, TIMESOURCE_ADD_SLAVE_NODE, &cmd, sizeof(cmd));
} else {
if (this == dynamic_cast<BTimeSource *>(node))
debugger("fuck you!");
DirectAddMe(node->Node());
}
return B_OK;