Skip to content

Commit 32f93b4

Browse files
logging
1 parent 8294b58 commit 32f93b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rp06.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ void rp06::write_word(const uint16_t addr, uint16_t v)
191191
uint32_t cur_n = std::min(end_offset - cur_offset, SECTOR_SIZE);
192192

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

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

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

0 commit comments

Comments
 (0)