diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1993-08-21 20:01:59 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1993-08-21 20:01:59 +0000 |
commit | 7617a0440ca86ab08e38f6e4edfd6bf8e4ced298 (patch) | |
tree | a9b53971940c462a2aa78177d0ba69e44e4bbe92 /sys/scsi/scsiconf.c | |
parent | 7ab5444375deb7fb955580b8ac93729281f8aa56 (diff) | |
download | FreeBSD-src-7617a0440ca86ab08e38f6e4edfd6bf8e4ced298.zip FreeBSD-src-7617a0440ca86ab08e38f6e4edfd6bf8e4ced298.tar.gz |
Fixed printf's so that they announce them selfs correctly (ie aha%d: before
every error message and every probe message).
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r-- | sys/scsi/scsiconf.c | 45 |
1 files changed, 26 insertions, 19 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 04aec86..f701805 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -12,23 +12,11 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * - * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE - * -------------------- ----- ---------------------- - * CURRENT PATCH LEVEL: 1 00098 - * -------------------- ----- ---------------------- - * - * 16 Feb 93 Julian Elischer ADDED for SCSI system - */ - -/* * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 + * + * $Id$ */ -/* -$Log: -* -*/ #include <sys/types.h> #include "st.h" #include "sd.h" @@ -136,6 +124,8 @@ knowndevs[] = { #if NCD > 0 { T_READONLY,T_REMOV,"SONY ","CD-ROM CDU-8012 " ,"3.1a",cdattach,"cd",SC_ONE_LU }, + { T_READONLY,T_REMOV,"PIONEER ","CD-ROM DRM-600 " + ,"any",cdattach,"cd",SC_MORE_LUS }, #endif NCD #if NBLL > 0 { T_PROCESSOR,T_FIXED,"AEG ","READER " @@ -198,6 +188,7 @@ struct scsi_switch *scsi_switch; predef = scsi_get_predef(scsibus ,targ ,lun + ,scsi_switch ,&maybe_more); bestmatch = scsi_probedev(unit ,targ @@ -254,8 +245,9 @@ struct scsi_switch *scsi_switch; * given a target and lu, check if there is a * * predefined device for that address * \***********************************************/ -struct predefined *scsi_get_predef(unit,target,lu,maybe_more) +struct predefined *scsi_get_predef(unit,target,lu,scsi_switch,maybe_more) int unit,target,lu,*maybe_more; +struct scsi_switch *scsi_switch; { int upto,numents; @@ -270,7 +262,9 @@ int unit,target,lu,*maybe_more; if(pd[upto].lu != lu) continue; - printf(" dev%d,lu%d: %s - PRECONFIGURED -\n" + printf("%s%d targ %d lun %d: <%s> - PRECONFIGURED -\n" + ,scsi_switch->name + ,unit ,target ,lu ,pd[upto].devname); @@ -455,17 +449,30 @@ int *maybe_more; strncpy(model,"unknown",16); strncpy(version,"????",4); } - printf(" dev%d,lu%d: type %d:%d(%s%s),%s '%s%s%s' scsi%d\n" + printf("%s%d targ %d lun %d: type %d(%s) %s <%s%s%s> SCSI%d\n" + ,scsi_switch->name + ,unit ,target ,lu - ,qualifier,type - ,dtype,qtype + ,type + ,dtype ,remov?"removable":"fixed" ,manu ,model ,version ,inqbuf.version & SID_ANSII ); + if(qtype[0]) + { + printf("%s%d targ %d lun %d: qulaifier %d(%s)\n" + ,scsi_switch->name + ,unit + ,target + ,lu + ,qualifier + ,qtype + ); + } /***********************************************\ * Try make as good a match as possible with * * available sub drivers * |