From: whitequark Date: Tue, 4 Jun 2019 13:11:15 +0000 (+0000) Subject: hdl.ir: rephrase elaboratable warning to not look like an error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=317f1cda9967f8f24b490a04c66d78fff6f01a15;p=nmigen.git hdl.ir: rephrase elaboratable warning to not look like an error. --- diff --git a/nmigen/hdl/ir.py b/nmigen/hdl/ir.py index a49db77..5135544 100644 --- a/nmigen/hdl/ir.py +++ b/nmigen/hdl/ir.py @@ -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="")