AHCI: make debug messages more compact

Put more information on a single line. This makes it easier to keep
track of things when debugging higher level parts of the disk stack
(partitionning and file systems).
This commit is contained in:
Adrien Destugues 2014-11-14 15:59:04 +01:00
parent 8068b64b5c
commit b31d5cd2b6
2 changed files with 5 additions and 9 deletions

View File

@ -239,7 +239,6 @@ AHCIPort::ResetDevice()
}
status_t
AHCIPort::ResetPort(bool forceDeviceReset)
{
@ -366,10 +365,9 @@ AHCIPort::InterruptErrorHandler(uint32 is)
B_PRIx32 ", is 0x%08" B_PRIx32 ", ci 0x%08" B_PRIx32 "\n", fIndex,
fCommandsActive, is, ci);
TRACE("ssts 0x%08" B_PRIx32 "\n", fRegs->ssts);
TRACE("sctl 0x%08" B_PRIx32 "\n", fRegs->sctl);
TRACE("serr 0x%08" B_PRIx32 "\n", fRegs->serr);
TRACE("sact 0x%08" B_PRIx32 "\n", fRegs->sact);
TRACE("ssts 0x%08" B_PRIx32 ", sctl 0x%08" B_PRIx32 ", serr 0x%08"
B_PRIx32 ", sact 0x%08" B_PRIx32 "\n",
fRegs->ssts, fRegs->sctl, fRegs->serr, fRegs->sact);
}
// read and clear SError

View File

@ -126,10 +126,8 @@ sata_request::Finish(int tfd, size_t bytesTransfered)
uint8 error = (tfd >> 8) & 0xff;
if (!IsTestUnitReady()) {
dprintf("ahci: sata_request::finish ATA command 0x%02x failed\n",
fFis[2]);
dprintf("ahci: sata_request::finish status 0x%02x, error 0x%02x\n",
status, error);
dprintf("ahci: sata_request::finish ATA command 0x%02x failed:"
" status 0x%02x, error 0x%02x\n", fFis[2], status, error);
}
}