--- nono/vm/scsicmd.cpp 2026/04/29 17:05:14 1.1.1.4 +++ nono/vm/scsicmd.cpp 2026/04/29 17:05:28 1.1.1.5 @@ -234,7 +234,7 @@ SCSICmdRead::Command(std::vector& CheckLUN; CheckMedium; - const uint8& cmd = cmdseq[0]; + const uint8 cmd = cmdseq[0]; if (cmd == SCSI::Command::Read10) { if ((cmdseq[1] & 0x01)) { parent->putlogf(0, lstr("%s RelAdr not supported", @@ -458,7 +458,7 @@ SCSICmdInquiry::Command(std::vectorClearSense(); uint reqlen = (uint)cmdseq[4]; - parent->putlogf(1, lstr("%s LUN=%d reqlen=$%02x", + parent->putlogf(1, lstr("%s LUN=%u reqlen=$%02x", SCSI::GetCommandName(cmdseq[0]), LUN, reqlen)); // 基本の 36バイト分を用意した上でデバイスに問い合わせ。 @@ -471,7 +471,7 @@ SCSICmdInquiry::Command(std::vectorputlogf(1, lstr("%s LoEj=%d Start=%d", + parent->putlogf(1, lstr("%s LoEj=%u Start=%u", SCSI::GetCommandName(cmdseq[0]), (loej ? 1 : 0), (start ? 1 : 0))); if (disk->IsRemovableDevice()) { @@ -1022,7 +1022,7 @@ SCSICmdPreventAllowMediumRemoval::Comman // PreventMediumRemoval() は状態変化でログレベル 1 で表示してるので、 // ここではログレベル 2 で常に表示にしておく。 uint prevent = cmdseq[4] & 1; - parent->putlogf(2, lstr("%s prevent=%d", + parent->putlogf(2, lstr("%s prevent=%u", SCSI::GetCommandName(cmdseq[0]), prevent)); disk->PreventMediumRemoval(prevent); @@ -1156,16 +1156,16 @@ SCSICmdReadTOC::Command(std::vectorputlogf(1, lstr("%s start=$%x len=$%x", @@ -1178,7 +1178,7 @@ SCSICmdReadTOC::Command(std::vector