Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Jun 25, 2024
1 parent 8294b58 commit 32f93b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp06.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void rp06::write_word(const uint16_t addr, uint16_t v)
uint32_t cur_n = std::min(end_offset - cur_offset, SECTOR_SIZE);

if (function_code == 070) {
DOLOG(debug, false, "RP06: reading %u bytes from %u (dec) to %06o (oct)", cur_n, offs, addr);
DOLOG(debug, false, "RP06: reading %u bytes from %u (dec) to %06o (oct)", cur_n, cur_offset, addr);

if (!fhs.at(0)->read(cur_offset, cur_n, xfer_buffer, SECTOR_SIZE)) {
DOLOG(ll_error, true, "RP06 read error %s from %u", strerror(errno), cur_offset);
Expand All @@ -204,7 +204,7 @@ void rp06::write_word(const uint16_t addr, uint16_t v)
b->write_unibus_byte(addr++, xfer_buffer[i]);
}
else {
DOLOG(debug, false, "RP06: writing %u bytes to %u (dec) from %06o (oct)", cur_n, offs, addr);
DOLOG(debug, false, "RP06: writing %u bytes to %u (dec) from %06o (oct)", cur_n, cur_offset, addr);

for(uint32_t i=0; i<cur_n; i++)
xfer_buffer[i] = b->read_unibus_byte(addr++);
Expand Down

0 comments on commit 32f93b4

Please sign in to comment.