- Even more debugging. This is temporary while #4103 is fixed.
- Added some missing \n. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32437 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -83,6 +83,11 @@ 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);
|
||||||
@@ -104,13 +109,17 @@ CDDBServer::Query(uint32 cddbId, const scsi_toc_toc* toc, BList* queryResponse)
|
|||||||
output.Remove(0, 1);
|
output.Remove(0, 1);
|
||||||
} else if (statusCode == "202") {
|
} else if (statusCode == "202") {
|
||||||
// No match found.
|
// No match found.
|
||||||
printf("Error : CDDB entry for id %s not found.", hexCddbId);
|
printf("Error : CDDB entry for id %s not found.\n", hexCddbId);
|
||||||
|
|
||||||
return B_ENTRY_NOT_FOUND;
|
return B_ENTRY_NOT_FOUND;
|
||||||
} else {
|
} else {
|
||||||
// Something bad happened.
|
// Something bad happened.
|
||||||
printf("Error : CDDB server status code is %s.",
|
if (statusCode.String() != "") {
|
||||||
statusCode.String());
|
printf("Error : CDDB server status code is %s.\n",
|
||||||
|
statusCode.String());
|
||||||
|
} else {
|
||||||
|
printf("Error. Could not find any status code.\n");
|
||||||
|
}
|
||||||
|
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user