From f93df3b5c37d618f6952e4d4135e549a090ae72d Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Sat, 21 May 2022 14:45:33 +0200 Subject: [PATCH] GrandCentral: improve error logging. --- devices/ioctrl/grandcentral.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/ioctrl/grandcentral.cpp b/devices/ioctrl/grandcentral.cpp index ddb830a..d806865 100644 --- a/devices/ioctrl/grandcentral.cpp +++ b/devices/ioctrl/grandcentral.cpp @@ -112,7 +112,7 @@ uint32_t GrandCentral::read(uint32_t reg_start, uint32_t offset, int size) return this->nvram->read_byte( (this->nvram_addr_hi << 5) + ((offset >> 4) & 0x1F)); default: - LOG_F(WARNING, "GC: unimplemented subdevice %d registers", subdev_num); + LOG_F(WARNING, "GC: unimplemented GBUS device #%d", subdev_num - 9); } } else if (offset & 0x8000) { // DMA register space unsigned subdev_num = (offset >> 12) & 0xF; @@ -184,7 +184,7 @@ void GrandCentral::write(uint32_t reg_start, uint32_t offset, uint32_t value, in (this->nvram_addr_hi << 5) + ((offset >> 4) & 0x1F), value); break; default: - LOG_F(WARNING, "GC: unimplemented subdevice %d registers", subdev_num); + LOG_F(WARNING, "GC: unimplemented GBUS device #%d", subdev_num - 9); } } else if (offset & 0x8000) { // DMA register space unsigned subdev_num = (offset >> 12) & 0xF;