From 3b094dac4e95084c055d6c6f94d223ae0b566b7f Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 8 Jan 2024 20:33:36 +0200 Subject: [PATCH] Fix debug logging --- a2091.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a2091.cpp b/a2091.cpp index bb6b1220..007f0034 100644 --- a/a2091.cpp +++ b/a2091.cpp @@ -719,7 +719,7 @@ static bool do_dma_commodore_8727(struct wd_state *wd, struct scsi_data *scsi) break; } #if WD33C93_DEBUG > 0 - write_log (_T("%s Done DMA from WD, %d/%d %08X\n"), WD33C93, scsi->offset, scsi->data_len, (odmac_acr << 1) & dma_mask); + write_log (_T("%s Done DMA from WD, %d/%d %08X\n"), WD33C93, scsi->offset, scsi->data_len, (odmac_acr << 1) & wd->dma_mask); #endif wd->cdmac.c8727_pcsd |= 1 << 7; return true; @@ -751,7 +751,7 @@ static bool do_dma_commodore_8727(struct wd_state *wd, struct scsi_data *scsi) break; } #if WD33C93_DEBUG > 0 - write_log (_T("%s Done DMA to WD, %d/%d %08x\n"), WD33C93, scsi->offset, scsi->data_len, (odmac_acr << 1) & (currprefs.cs_z2dma32bit ? 0xffffffff : 0xffffff)); + write_log (_T("%s Done DMA to WD, %d/%d %08x\n"), WD33C93, scsi->offset, scsi->data_len, (odmac_acr << 1) & wd->dma_mask); #endif wd->cdmac.c8727_pcsd |= 1 << 7; return true; -- 2.47.3