From 317f1cda9967f8f24b490a04c66d78fff6f01a15 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 4 Jun 2019 13:11:15 +0000 Subject: [PATCH] hdl.ir: rephrase elaboratable warning to not look like an error. --- nmigen/hdl/ir.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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="") -- 2.30.2