Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
lsscsi
lsscsi-fix-classic-output
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lsscsi-fix-classic-output of Package lsscsi
From fd953ead04296d63bf464d7a6af099e21df8cf4a Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Wed, 22 Jan 2014 15:08:33 +0100 Subject: Display correct non-conformant ANSI version Devices might display an ANSI version of '0', in which case the current code will wrap. Signed-off-by: Hannes Reinecke <hare@suse.de> --- src/lsscsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lsscsi.c b/src/lsscsi.c index bddadb8..870949e 100644 --- a/src/lsscsi.c +++ b/src/lsscsi.c @@ -2336,6 +2336,8 @@ one_classic_sdev_entry(const char * dir_name, const char * devname, printf("ANSI SCSI revision: ?\n"); } else if (1 != sscanf(value, "%d", &scsi_level)) { printf("ANSI SCSI revision: ??\n"); + } else if (scsi_level == 0) { + printf("ANSI SCSI revision: none\n"); } else printf("ANSI SCSI revision: %02x\n", (scsi_level - 1) ? scsi_level - 1 : 1); -- 1.7.12.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor