wait_ldok: add debug output count
authorTobias Platen <tplaten@posteo.de>
Tue, 25 May 2021 17:22:46 +0000 (19:22 +0200)
committerTobias Platen <tplaten@posteo.de>
Tue, 25 May 2021 17:22:46 +0000 (19:22 +0200)
src/soc/config/test/test_pi2ls.py

index bb363a382d65e18e112b62123b1d5f8b6bb38e35..eb20177c2117e43ff1355be96877950d0b712bdb 100644 (file)
@@ -27,10 +27,12 @@ def wait_addr(port):
 
 
 def wait_ldok(port):
+    cnt = 0
     while True:
         ldok = yield port.ld.ok
         exc_happened = yield port.exc_o.happened
-        print("ldok", ldok, "exception", exc_happened)
+        print("ldok", ldok, "exception", exc_happened, "count", cnt)
+        cnt += 1
         if ldok or exc_happened:
             break
         yield