From 3f57d072ec1c7baa9dd5d3c31991f1cdcfae3219 Mon Sep 17 00:00:00 2001 From: joevt Date: Fri, 20 Jun 2025 03:44:40 -0700 Subject: [PATCH] maciotwo: Fix indent. --- devices/ioctrl/maciotwo.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/devices/ioctrl/maciotwo.cpp b/devices/ioctrl/maciotwo.cpp index 4eefbea..74de213 100644 --- a/devices/ioctrl/maciotwo.cpp +++ b/devices/ioctrl/maciotwo.cpp @@ -80,7 +80,7 @@ uint32_t MacIoTwo::read(uint32_t rgn_start, uint32_t offset, int size) { if ((offset & 0xFF) < 0x60) { value = 0; LOG_F(ERROR, "%s: ESCC compatible read @%x.%c", this->name.c_str(), - offset, SIZE_ARG(size)); + offset, SIZE_ARG(size)); break; } // fallthrough @@ -210,8 +210,9 @@ uint32_t MacIoTwo::dma_read(uint32_t offset, int size) { if (!(unsupported_dma_channel_read & (1 << dma_channel))) { unsupported_dma_channel_read |= (1 << dma_channel); LOG_F(WARNING, "%s: Unsupported DMA channel %d %s read @%02x.%c", - this->name.c_str(), dma_channel, get_name_dma(dma_channel), - offset & 0xFF, SIZE_ARG(size)); + this->name.c_str(), dma_channel, get_name_dma(dma_channel), + offset & 0xFF, SIZE_ARG(size)); + return 0; } } @@ -243,8 +244,8 @@ void MacIoTwo::dma_write(uint32_t offset, uint32_t value, int size) { if (!(unsupported_dma_channel_write & (1 << dma_channel))) { unsupported_dma_channel_write |= (1 << dma_channel); LOG_F(WARNING, "%s: Unsupported DMA channel %d %s write @%02x.%c = %0*x", - this->name.c_str(), dma_channel, get_name_dma(dma_channel), - offset & 0xFF, SIZE_ARG(size), size * 2, value); + this->name.c_str(), dma_channel, get_name_dma(dma_channel), + offset & 0xFF, SIZE_ARG(size), size * 2, value); } } }