Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/hp300/dev Pull up revision 1.26 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/229bb81d3e7a
branches:  netbsd-1-4
changeset: 469654:229bb81d3e7a
user:      he <he%NetBSD.org@localhost>
date:      Sun Oct 31 22:28:42 1999 +0000

description:
Pull up revision 1.26 (requested by he):
  Print vendor/product/rev also for SCSI-3 devices.

diffstat:

 sys/arch/hp300/dev/scsi.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 41de7159718a -r 229bb81d3e7a sys/arch/hp300/dev/scsi.c
--- a/sys/arch/hp300/dev/scsi.c Sun Oct 31 22:25:55 1999 +0000
+++ b/sys/arch/hp300/dev/scsi.c Sun Oct 31 22:28:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsi.c,v 1.25 1999/02/06 03:30:32 thorpej Exp $        */
+/*     $NetBSD: scsi.c,v 1.25.2.1 1999/10/31 22:28:42 he Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -487,13 +487,14 @@
        switch (inqbuf->version) {
        case 1:
        case 2:
+       case 3:
                scsi_str(inqbuf->vendor_id, vendor, sizeof(inqbuf->vendor_id));
                scsi_str(inqbuf->product_id, product,
                    sizeof(inqbuf->product_id));
                scsi_str(inqbuf->rev, revision, sizeof(inqbuf->rev));
                printf("<%s, %s, %s>", vendor, product, revision);
-               if (inqbuf->version == 2)
-                       printf(" (SCSI-2)");
+               if (inqbuf->version >= 2)
+                       printf(" (SCSI-%d)", inqbuf->version);
                break;
        default:
                printf("type 0x%x, qual 0x%x, ver %d",



Home | Main Index | Thread Index | Old Index