1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-10-31 20:16:07 +00:00

Use logger instead of printf.

This commit is contained in:
Thomas Harte
2024-02-15 13:55:46 -05:00
parent 093a029b8c
commit d9ec11c62e
3 changed files with 13 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ enum class Source {
AmigaCopper,
AmigaChipset,
AmigaBlitter,
AppleIISCSICard,
AtariST,
AtariSTDMAController,
CommodoreStaticAnalyser,
@@ -65,10 +66,13 @@ constexpr bool is_enabled(Source source) {
case Source::AmigaChipset:
case Source::AmigaCopper:
case Source::AmigaDisk:
case Source::DirectAccessDevice:
case Source::IWM:
case Source::MFP68901:
case Source::NCR5380:
case Source::SCC: return false;
case Source::SCC:
case Source::SCSI:
return false;
}
}
@@ -82,9 +86,11 @@ constexpr const char *prefix(Source source) {
case Source::AmigaChipset: return "Chipset";
case Source::AmigaCopper: return "Copper";
case Source::AmigaDisk: return "Disk";
case Source::AppleIISCSICard: return "SCSI card";
case Source::AtariST: return "AtariST";
case Source::AtariSTDMAController: return "DMA";
case Source::CommodoreStaticAnalyser: return "Commodore Static Analyser";
case Source::DirectAccessDevice: return "Direct Access Device";
case Source::Enterprise: return "Enterprise";
case Source::i8272: return "i8272";
case Source::IntelligentKeyboard: return "IKYB";