kernel/ATA: Remove debug messages
This commit is contained in:
parent
738b218a49
commit
ba46399bbd
@ -516,14 +516,6 @@ namespace ATA
|
|||||||
kinfoln("ata: Drive %d capacity information: Block Count=%lu, Block Size=%lu, Total Capacity=%lu",
|
kinfoln("ata: Drive %d capacity information: Block Count=%lu, Block Size=%lu, Total Capacity=%lu",
|
||||||
m_drive_index, m_block_count, m_block_size, total_capacity);
|
m_drive_index, m_block_count, m_block_size, total_capacity);
|
||||||
|
|
||||||
char buf[2048];
|
|
||||||
if (atapi_read_pio(0, buf, sizeof(buf)).has_error()) return false;
|
|
||||||
|
|
||||||
char readable[2049];
|
|
||||||
for (int i = 0; i < 2048; i++) { readable[i] = _iscntrl(buf[i]) ? '.' : buf[i]; }
|
|
||||||
readable[2048] = 0;
|
|
||||||
kinfoln("ata: Read first sector from CD-ROM: %s", readable);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -693,7 +685,6 @@ namespace ATA
|
|||||||
const usize blocks_per_page = ARCH_PAGE_SIZE / m_block_size;
|
const usize blocks_per_page = ARCH_PAGE_SIZE / m_block_size;
|
||||||
if (m_is_atapi)
|
if (m_is_atapi)
|
||||||
{
|
{
|
||||||
kdbgln("ata: Reading %zu blocks from ATAPI drive using PIO, at LBA %ld", nblocks, lba);
|
|
||||||
while (nblocks > blocks_per_page)
|
while (nblocks > blocks_per_page)
|
||||||
{
|
{
|
||||||
TRY(atapi_read_pio(lba, out, ARCH_PAGE_SIZE));
|
TRY(atapi_read_pio(lba, out, ARCH_PAGE_SIZE));
|
||||||
|
Loading…
Reference in New Issue
Block a user