scsihd: Use device name in abort message.

This commit is contained in:
joevt 2024-03-10 00:30:19 -08:00 committed by dingusdev
parent a79f07e4dc
commit 44da89979f
1 changed files with 1 additions and 1 deletions

View File

@ -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<int>(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());
}
}