]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix debug logging
authorToni Wilen <twilen@winuae.net>
Mon, 8 Jan 2024 18:33:36 +0000 (20:33 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 8 Jan 2024 18:33:36 +0000 (20:33 +0200)
a2091.cpp

index bb6b12208bd654523f05a8bbaf33b291600444c4..007f0034178cd49a1e8e3f12946f957f2d4cd374 100644 (file)
--- 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;