From 44da89979f54917f2b85a77ff7229ed1f653be22 Mon Sep 17 00:00:00 2001 From: joevt Date: Sun, 10 Mar 2024 00:30:19 -0800 Subject: [PATCH] scsihd: Use device name in abort message. --- devices/common/scsi/scsihd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/common/scsi/scsihd.cpp b/devices/common/scsi/scsihd.cpp index 979f69b..0e42517 100644 --- a/devices/common/scsi/scsihd.cpp +++ b/devices/common/scsi/scsihd.cpp @@ -46,7 +46,7 @@ void ScsiHardDisk::insert_image(std::string filename) { uint64_t tb = (this->img_size + this->sector_size - 1) / this->sector_size; this->total_blocks = static_cast(tb); if (this->total_blocks < 0 || tb != this->total_blocks) { - ABORT_F("ScsiHardDisk: file size is too large"); + ABORT_F("%s: file size is too large", this->name.c_str()); } }