aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mpt/mpt_cam.c
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2006-02-25 07:45:54 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2006-02-25 07:45:54 +0000
commit0b80d21bdfab237033d5553cfabe94cb94215da8 (patch)
tree0a5928b2d4ef8e177a993dd1920376dc451b613b /sys/dev/mpt/mpt_cam.c
parent667dad55fc0a1d1efb337bbdeaaeba7dad04e8cc (diff)
downloadsrc-0b80d21bdfab237033d5553cfabe94cb94215da8.tar.gz
src-0b80d21bdfab237033d5553cfabe94cb94215da8.zip
Role a microrev of the MPI Library in preparation for target mode work.
Make my portions of the license clearer. Thank Chris Ellsworth for his support in getting a bunch of this done.
Notes
Notes: svn path=/head/; revision=156000
Diffstat (limited to 'sys/dev/mpt/mpt_cam.c')
-rw-r--r--sys/dev/mpt/mpt_cam.c41
1 files changed, 36 insertions, 5 deletions
diff --git a/sys/dev/mpt/mpt_cam.c b/sys/dev/mpt/mpt_cam.c
index 6ce843a48912..2632d3aa225b 100644
--- a/sys/dev/mpt/mpt_cam.c
+++ b/sys/dev/mpt/mpt_cam.c
@@ -24,8 +24,39 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ */
+/*-
+ * Copyright (c) 2002, 2006 by Matthew Jacob
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce at minimum a disclaimer
+ * substantially similar to the "NO WARRANTY" disclaimer below
+ * ("Disclaimer") and any redistribution must be conditioned upon including
+ * a substantially similar Disclaimer requirement for further binary
+ * redistribution.
+ * 3. Neither the names of the above listed copyright holders nor the names
+ * of any contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF THE COPYRIGHT
+ * OWNER OR CONTRIBUTOR IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * Additional Copyright (c) 2002 by Matthew Jacob under same license.
+ * Support from Chris Ellsworth in order to make SAS adapters work
+ * is gratefully acknowledged.
*/
/*-
* Copyright (c) 2004, Avid Technology, Inc. and its contributors.
@@ -943,7 +974,7 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *req,
if ((msg->Data[0] & 0xff) == 0xF7) {
printf("Device needs AL_PA\n");
} else {
- printf("Device %02x doesn't like "
+ printf("Device %02lx doesn't like "
"FC performance\n",
msg->Data[0] & 0xFF);
}
@@ -954,14 +985,14 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *req,
"receiver prior to acquiring "
"AL_PA\n");
} else {
- printf("Device %02x detected loop "
+ printf("Device %02lx detected loop "
"failure at its receiver\n",
msg->Data[0] & 0xFF);
}
break;
default:
- printf("Device %02x requests that device "
- "%02x reset itself\n",
+ printf("Device %02lx requests that device "
+ "%02lx reset itself\n",
msg->Data[0] & 0xFF,
(msg->Data[0] >> 8) & 0xFF);
break;