svn commit: r249898 - stable/9/sys/dev/ciss
Sean Bruno
sbruno at FreeBSD.org
Thu Apr 25 17:02:22 UTC 2013
Author: sbruno
Date: Thu Apr 25 17:02:22 2013
New Revision: 249898
URL: http://svnweb.freebsd.org/changeset/base/249898
Log:
MFC r249349
Repair camcontrol output and use CAM defined values for string sizes
Modified:
stable/9/sys/dev/ciss/ciss.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/ciss/ciss.c
==============================================================================
--- stable/9/sys/dev/ciss/ciss.c Thu Apr 25 16:34:04 2013 (r249897)
+++ stable/9/sys/dev/ciss/ciss.c Thu Apr 25 17:02:22 2013 (r249898)
@@ -3352,9 +3352,14 @@ ciss_cam_complete_fixup(struct ciss_soft
cl = &sc->ciss_logical[bus][target];
- padstr(inq->vendor, "COMPAQ", 8);
- padstr(inq->product, ciss_name_ldrive_org(cl->cl_ldrive->fault_tolerance), 8);
- padstr(inq->revision, ciss_name_ldrive_status(cl->cl_lstatus->status), 16);
+ padstr(inq->vendor, "COMPAQ",
+ SID_VENDOR_SIZE);
+ padstr(inq->product,
+ ciss_name_ldrive_org(cl->cl_ldrive->fault_tolerance),
+ SID_PRODUCT_SIZE);
+ padstr(inq->revision,
+ ciss_name_ldrive_status(cl->cl_lstatus->status),
+ SID_REVISION_SIZE);
}
}
More information about the svn-src-stable-9
mailing list