- Revert excessive debugging.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque
2009-08-16 22:13:28 +00:00
parent cd75ca52e7
commit c2e9bbc888
+2 -9
View File
@@ -83,11 +83,6 @@ CDDBServer::Query(uint32 cddbId, const scsi_toc_toc* toc, BList* queryResponse)
status_t result; status_t result;
result = _SendCddbCommand(cddbCommand, &output); result = _SendCddbCommand(cddbCommand, &output);
//TODO(bga): Remove this after #4103 is closed.
printf("----- CDDB query reply start -----\n");
printf("%s\n", output.String());
printf("----- CDDB query reply end -----\n");
if (result == B_OK) { if (result == B_OK) {
// Remove the header from the reply. // Remove the header from the reply.
output.Remove(0, output.FindFirst("\r\n\r\n") + 4); output.Remove(0, output.FindFirst("\r\n\r\n") + 4);
@@ -114,7 +109,7 @@ CDDBServer::Query(uint32 cddbId, const scsi_toc_toc* toc, BList* queryResponse)
return B_ENTRY_NOT_FOUND; return B_ENTRY_NOT_FOUND;
} else { } else {
// Something bad happened. // Something bad happened.
if (statusCode.String() != "") { if (statusCode.Trim() != "") {
printf("Error : CDDB server status code is %s.\n", printf("Error : CDDB server status code is %s.\n",
statusCode.String()); statusCode.String());
} else { } else {
@@ -377,14 +372,12 @@ CDDBServer::_SendCddbCommand(const BString& command, BString* output)
// And now add command header and footer. // And now add command header and footer.
fullCommand.Prepend("GET /~cddb/cddb.cgi?cmd="); fullCommand.Prepend("GET /~cddb/cddb.cgi?cmd=");
fullCommand << " HTTP 1.0\n\n"; fullCommand << " HTTP 1.0\n\n";
printf("%s\n", fullCommand.String());
int32 result = fConnection.Send((void*)fullCommand.String(), int32 result = fConnection.Send((void*)fullCommand.String(),
fullCommand.Length()); fullCommand.Length());
if (result == fullCommand.Length()) { if (result == fullCommand.Length()) {
BNetBuffer netBuffer; BNetBuffer netBuffer;
while (fConnection.Receive(netBuffer, 10) != 0) { while (fConnection.Receive(netBuffer, 1024) != 0) {
// Do nothing. Data is automatically appended to the NetBuffer. // Do nothing. Data is automatically appended to the NetBuffer.
} }