Skip to content

Commit 7d4ebf5

Browse files
Fix spelling.
1 parent 79c9b5f commit 7d4ebf5

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

devices/common/scsi/scsi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class ScsiDevice : public HWComponent {
248248
int field = 0;
249249
bool valid = true;
250250

251-
bool last_selection_has_atention = false;
251+
bool last_selection_has_attention = false;
252252
uint8_t last_selection_message = 0;
253253
ScsiBus* bus_obj;
254254

devices/common/scsi/scsicdrom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ uint32_t ScsiCdrom::inquiry(uint8_t *cmd_ptr, uint8_t *data_ptr) {
181181
}
182182

183183
int lun;
184-
if (this->last_selection_has_atention) {
184+
if (this->last_selection_has_attention) {
185185
LOG_F(INFO, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7", this->name.c_str(),
186186
alloc_len, this->last_selection_message);
187187
lun = this->last_selection_message & 7;

devices/common/scsi/scsidevice.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ void ScsiDevice::notify(ScsiNotification notif_type, int param)
4848
this->seq_steps = nullptr;
4949
this->initiator_id = this->bus_obj->get_initiator_id();
5050
if (this->bus_obj->test_ctrl_lines(SCSI_CTRL_ATN)) {
51-
this->last_selection_has_atention = true;
51+
this->last_selection_has_attention = true;
5252
this->switch_phase(ScsiPhase::MESSAGE_OUT);
5353
} else {
54-
this->last_selection_has_atention = false;
54+
this->last_selection_has_attention = false;
5555
this->switch_phase(ScsiPhase::COMMAND);
5656
}
5757
});
@@ -187,7 +187,7 @@ int ScsiDevice::xfer_data() {
187187
} else {
188188
this->process_message();
189189
}
190-
if (this->last_selection_has_atention)
190+
if (this->last_selection_has_attention)
191191
this->last_selection_message = this->msg_buf[0];
192192
}
193193
break;

devices/common/scsi/scsihd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int ScsiHardDisk::req_sense(uint16_t alloc_len) {
170170
//int next_phase;
171171

172172
int lun;
173-
if (this->last_selection_has_atention) {
173+
if (this->last_selection_has_attention) {
174174
lun = this->last_selection_message & 7;
175175
}
176176
else {
@@ -232,7 +232,7 @@ uint32_t ScsiHardDisk::inquiry(uint8_t *cmd_ptr, uint8_t *data_ptr) {
232232
}
233233

234234
int lun;
235-
if (this->last_selection_has_atention) {
235+
if (this->last_selection_has_attention) {
236236
LOG_F(INFO, "%s: INQUIRY (%d bytes) with ATN LUN = %02x & 7",
237237
this->name.c_str(), alloc_len, this->last_selection_message);
238238
lun = this->last_selection_message & 7;

0 commit comments

Comments
 (0)