hdl.ir: rephrase elaboratable warning to not look like an error.
authorwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 13:11:15 +0000 (13:11 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 13:11:15 +0000 (13:11 +0000)
nmigen/hdl/ir.py

index a49db7749066259517d8c38a6f471d348cb99b12..513554481192538cb07a6ad1629ace7fb7f5b07a 100644 (file)
@@ -26,8 +26,8 @@ class Elaboratable(metaclass=ABCMeta):
         if self._Elaboratable__silence:
             return
         if hasattr(self, "_Elaboratable__used") and not self._Elaboratable__used:
-            print("Elaboratable created but never used\n",
-                  "Traceback (most recent call last):\n",
+            print("Warning: elaboratable created but never used\n",
+                  "Constructor traceback (most recent call last):\n",
                   *traceback.format_list(self._Elaboratable__traceback),
                   file=sys.stderr, sep="")