From 77bb6f1990dfbaf9092f64b87be30e8c3c02bdfe Mon Sep 17 00:00:00 2001
From: Micah Elizabeth Scott <micah@scanlime.org>
Date: Tue, 15 Oct 2013 11:30:33 -0700
Subject: [PATCH] Fix confusing error message

CSW at this point isn't valid if the error wasn't a timeout but it was something else instead, like a FAULT.
---
 testjig/production/arm_debug.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testjig/production/arm_debug.cpp b/testjig/production/arm_debug.cpp
index 3ccda3d..dbb5493 100644
--- a/testjig/production/arm_debug.cpp
+++ b/testjig/production/arm_debug.cpp
@@ -142,7 +142,7 @@ bool ARMDebug::memWait()
 
     uint32_t csw;
     if (!apReadPoll(MEM_CSW, csw, CSW_TRIN_PROG | CSW_DEVICE_EN, CSW_DEVICE_EN)) {
-        log(LOG_ERROR, "ARMDebug: Timed out waiting for memory port (CSW: %08x)", csw);
+        log(LOG_ERROR, "ARMDebug: Error while waiting for memory port");
         return false;
     }
 
-- 
GitLab