Skip to content

Commit

Permalink
fix wrong fields in log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeOsborn committed Aug 18, 2023
1 parent 65ef743 commit 92d5103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -1717,13 +1717,13 @@ IDEInterface.prototype.ata_write_sectors_dma = function(cmd)
var byte_count = count * this.sector_size;
var start = lba * this.sector_size;

dbg_log("dev "+this.name+" ATA DMA write lba=" + h(lba) +
dbg_log("dev "+this.device.name+" ATA DMA write lba=" + h(lba) +
" lbacount=" + h(count) +
" bytecount=" + h(byte_count), LOG_DISK);

if(start + byte_count > this.buffer.byteLength)
{
dbg_assert(false, "dev "+this.name+" ATA DMA write: Outside of disk", LOG_DISK);
dbg_assert(false, "dev "+this.device.name+" ATA DMA write: Outside of disk", LOG_DISK);

this.status = 0xFF;
this.push_irq();
Expand Down

0 comments on commit 92d5103

Please sign in to comment.