]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Don't log PCI config addresses that don't match any device
authorToni Wilen <twilen@winuae.net>
Tue, 14 Oct 2025 13:48:49 +0000 (16:48 +0300)
committerToni Wilen <twilen@winuae.net>
Tue, 14 Oct 2025 13:48:49 +0000 (16:48 +0300)
pci.cpp

diff --git a/pci.cpp b/pci.cpp
index 9be202047036bd080ffdd6a2679cdb328bc743ca..85951ac42308a353bdc95754ee4e874856315e95 100644 (file)
--- a/pci.cpp
+++ b/pci.cpp
@@ -720,7 +720,9 @@ static uae_u32 REGPARAM2 pci_config_wget(uaecptr addr)
                        v |= config[(offset ^ (endianswap > 0 ? 2 : 0)) + 0] << 0;
                }
 #if PCI_DEBUG_CONFIG
-               write_log(_T("-> %04x\n"), v);
+               if (config != config_return) {
+                       write_log(_T("-> %04x\n"), v);
+               }
 #endif
        }
        return v;
@@ -738,7 +740,9 @@ static uae_u32 REGPARAM2 pci_config_bget(uaecptr addr)
                        v = config[beswap(endianswap, offset)];
                }
 #if PCI_DEBUG_CONFIG
-               write_log(_T("-> %02x\n"), v);
+               if (config != config_return) {
+                       write_log(_T("-> %02x\n"), v);
+               }
 #endif
        }
        return v;