Skip to content

Commit

Permalink
Update display of SCSI level
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 7, 2025
1 parent f842acb commit ac69a02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/s2pctl/s2pctl_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ string S2pCtlDisplay::DisplayDeviceInfo(const PbDevice &pb_device) const
s << " " << pb_device.id() << ":" << pb_device.unit() << " " << type
<< " " << pb_device.vendor() << ":" << pb_device.product() << ":" << pb_device.revision();

// Check for existence because PiSCSI does not support this setting
// Note: PiSCSI does not support this setting
if (pb_device.scsi_level()) {
s << " " << GetScsiLevel(pb_device.scsi_level());
}
else {
s << " -";
}

// There is no need to display "default"
if (pb_device.caching_mode()) {
Expand Down

0 comments on commit ac69a02

Please sign in to comment.