From: Gabe Black Date: Sun, 9 Oct 2011 06:24:32 +0000 (-0700) Subject: Ports: Print the port name when a port is used but not attached to anything. X-Git-Tag: stable_2012_06_28~330 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfec60ad3a24a0977e9da2b052614c273918bd5d;p=gem5.git Ports: Print the port name when a port is used but not attached to anything. --- diff --git a/src/dev/io_device.cc b/src/dev/io_device.cc index c073ab501..3c64e2717 100644 --- a/src/dev/io_device.cc +++ b/src/dev/io_device.cc @@ -71,7 +71,7 @@ void PioDevice::init() { if (!pioPort) - panic("Pio port not connected to anything!"); + panic("Pio port %s not connected to anything!", name()); pioPort->sendStatusChange(Port::RangeChange); }