From ed67ab81a3913889133cd1aeb393cbd928cd1600 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Tue, 7 May 2024 08:21:40 +0200 Subject: [PATCH] scsicdrom: switch off info log in INQUIRY. --- devices/common/scsi/scsicdrom.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/devices/common/scsi/scsicdrom.cpp b/devices/common/scsi/scsicdrom.cpp index 27b270f..8664fe1 100644 --- a/devices/common/scsi/scsicdrom.cpp +++ b/devices/common/scsi/scsicdrom.cpp @@ -212,11 +212,13 @@ void ScsiCdrom::inquiry() { int lun; if (this->last_selection_has_atention) { - LOG_F(INFO, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7", this->name.c_str(), alloc_len, this->last_selection_message); + LOG_F(9, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7", this->name.c_str(), + alloc_len, this->last_selection_message); lun = this->last_selection_message & 7; } else { - LOG_F(INFO, "%s: INQUIRY (%d bytes) with NO ATN LUN = %02x >> 5", this->name.c_str(), alloc_len, cmd_buf[1]); + LOG_F(9, "%s: INQUIRY (%d bytes) with NO ATN LUN = %02x >> 5", this->name.c_str(), + alloc_len, cmd_buf[1]); lun = cmd_buf[1] >> 5; } @@ -425,7 +427,7 @@ void ScsiCdrom::read_capacity_10() if (!check_lun()) return; - + int last_lba = (int)this->size_blocks - 1; WRITE_DWORD_BE_A(&this->data_buf[0], last_lba);