From: Toni Wilen Date: Mon, 8 Jan 2024 18:33:36 +0000 (+0200) Subject: Fix debug logging X-Git-Tag: 5200~79 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3b094dac4e95084c055d6c6f94d223ae0b566b7f;p=francis%2Fwinuae.git Fix debug logging --- 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;